#AFC239#AFC239

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

Color values

HEX#AFC239
RGBrgb(175, 194, 57)
HSLhsl(68, 55%, 49%)
HSVhsv(68, 71%, 76%)
CMYKcmyk(9.8%, 0%, 70.6%, 23.9%)
CIE-LABlab(74.82, -24.06, 63.03)
CIE-LCHlch(74.82, 67.46, 110.90°)
OKLaboklab(77.47% -0.072 0.1405)
OKLCHoklch(77.47% 0.158 117.1)
XYZxyz(37.7104, 47.9934, 11.1472)
Luminance0.4799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC239 #4C39C2
analogous
#C29139 #AFC239 #6BC239
triadic
#AFC239 #39AFC2 #C239AF
tetradic
#AFC239 #39C291 #4C39C2 #C2396B
square
#AFC239 #39C291 #4C39C2 #C2396B
split-complementary
#AFC239 #396BC2 #9139C2
monochromatic
#5A631D #84932B #AFC239 #C3D266 #D6E095

Accessibility & contrast

On white

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

On black

10.60
#AFC239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC239
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC239#FFFFFF#000000##000000
##AFC2391.001.9810.6010.60
#FFFFFF1.981.0021.0021.00
#00000010.6021.001.001.00
##00000010.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afc239;
/* rgb */ color: rgb(175, 194, 57);
/* oklch */ color: oklch(77.5% 0.158 117.1);
Tailwind
colors: {
  custom: {
    50: '#cad478',
    500: '#afc239',
    950: '#000000',
  },
}
SCSS
$custom: #afc239;
$custom-light: #cad478;
$custom-dark: #000000;
JSON
{
  "hex": "#afc239",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 57
  },
  "hsl": {
    "h": 68.321,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.77469,
    "c": 0.1579,
    "h": 117.1
  },
  "luminance": 0.47993
}

Semantic roles & 50–950 ramp

primary
#AFC239
secondary
#948BCB
accent
#4ADE5E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC239

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

Preview Lab → · Contrast checker → · Palette generator →

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