#AFC339#AFC339

#AFC339 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.7% C 0.159 H 117.5°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#AFC339
RGBrgb(175, 195, 57)
HSLhsl(69, 55%, 49%)
HSVhsv(69, 71%, 76%)
CMYKcmyk(10.3%, 0%, 70.8%, 23.5%)
CIE-LABlab(75.10, -24.55, 63.30)
CIE-LCHlch(75.10, 67.90, 111.20°)
OKLaboklab(77.7% -0.0733 0.1411)
OKLCHoklch(77.7% 0.159 117.5)
XYZxyz(37.9337, 48.4400, 11.2216)
Luminance0.4844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC339 #4D39C3
analogous
#C39239 #AFC339 #6AC339
triadic
#AFC339 #39AFC3 #C339AF
tetradic
#AFC339 #39C392 #4D39C3 #C3396A
square
#AFC339 #39C392 #4D39C3 #C3396A
split-complementary
#AFC339 #396AC3 #9239C3
monochromatic
#5A641D #85942B #AFC339 #C3D267 #D6E096

Accessibility & contrast

On white

1.96
#AFC339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.69
#AFC339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC339
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC339#FFFFFF#000000##000000
##AFC3391.001.9610.6910.69
#FFFFFF1.961.0021.0021.00
#00000010.6921.001.001.00
##00000010.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B921
Deuteranopia (green-blind)
#CEBA44
Tritanopia (blue-blind)
#BAB8A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc339;
/* rgb */ color: rgb(175, 195, 57);
/* oklch */ color: oklch(77.7% 0.159 117.5);
Tailwind
colors: {
  custom: {
    50: '#cad578',
    500: '#afc339',
    950: '#000000',
  },
}
SCSS
$custom: #afc339;
$custom-light: #cad578;
$custom-dark: #000000;
JSON
{
  "hex": "#afc339",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 57
  },
  "hsl": {
    "h": 68.696,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.77695,
    "c": 0.15904,
    "h": 117.5
  },
  "luminance": 0.4844
}

Semantic roles & 50–950 ramp

primary
#AFC339
secondary
#958CCC
accent
#4ADE5F
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC339

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

Preview Lab → · Contrast checker → · Palette generator →

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