#AFC236#AFC236

#AFC236 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.4% C 0.160 H 117.1°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#AFC236
RGBrgb(175, 194, 54)
HSLhsl(68, 56%, 49%)
HSVhsv(68, 72%, 76%)
CMYKcmyk(9.8%, 0%, 72.2%, 23.9%)
CIE-LABlab(74.80, -24.22, 64.08)
CIE-LCHlch(74.80, 68.50, 110.71°)
OKLaboklab(77.45% -0.0727 0.1422)
OKLCHoklch(77.45% 0.16 117.1)
XYZxyz(37.6377, 47.9643, 10.7646)
Luminance0.4796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC236 #4936C2
analogous
#C28F36 #AFC236 #69C236
triadic
#AFC236 #36AFC2 #C236AF
tetradic
#AFC236 #36C28F #4936C2 #C23669
square
#AFC236 #36C28F #4936C2 #C23669
split-complementary
#AFC236 #3669C2 #8F36C2
monochromatic
#59621B #849229 #AFC236 #C4D362 #D6E192

Accessibility & contrast

On white

1.98
#AFC236 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#AFC236 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC236
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC236#FFFFFF#000000##000000
##AFC2361.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB81B
Deuteranopia (green-blind)
#CDB942
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc236;
/* rgb */ color: rgb(175, 194, 54);
/* oklch */ color: oklch(77.4% 0.160 117.1);
Tailwind
colors: {
  custom: {
    50: '#cad477',
    500: '#afc236',
    950: '#000000',
  },
}
SCSS
$custom: #afc236;
$custom-light: #cad477;
$custom-dark: #000000;
JSON
{
  "hex": "#afc236",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 54
  },
  "hsl": {
    "h": 68.143,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.77448,
    "c": 0.15975,
    "h": 117.1
  },
  "luminance": 0.47964
}

Semantic roles & 50–950 ramp

primary
#AFC236
secondary
#9188CC
accent
#48E05D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC236

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFC236 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva