#AFA42C#AFA42C

#AFA42C is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.135 H 104.0°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA42C
RGBrgb(175, 164, 44)
HSLhsl(55, 60%, 43%)
HSVhsv(55, 75%, 69%)
CMYKcmyk(0%, 6.3%, 74.9%, 31.4%)
CIE-LABlab(66.40, -9.50, 59.56)
CIE-LCHlch(66.40, 60.31, 99.06°)
OKLaboklab(70.71% -0.0325 0.1309)
OKLCHoklch(70.71% 0.135 104)
XYZxyz(31.4107, 35.8480, 7.6472)
Luminance0.3585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA42C #2C37AF
analogous
#AF632C #AFA42C #78AF2C
triadic
#AFA42C #2CAFA4 #A42CAF
tetradic
#AFA42C #2CAF63 #2C37AF #AF2C78
square
#AFA42C #2CAF63 #2C37AF #AF2C78
split-complementary
#AFA42C #2C78AF #632CAF
monochromatic
#4D4813 #7E7620 #AFA42C #D1C547 #DDD578

Accessibility & contrast

On white

2.57
#AFA42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA42C
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA42C#FFFFFF#000000##000000
##AFA42C1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E14
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa42c;
/* rgb */ color: rgb(175, 164, 44);
/* oklch */ color: oklch(70.7% 0.135 104.0);
Tailwind
colors: {
  custom: {
    50: '#cbbe6e',
    500: '#afa42c',
    950: '#000000',
  },
}
SCSS
$custom: #afa42c;
$custom-light: #cbbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa42c",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 54.962,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70713,
    "c": 0.1349,
    "h": 104
  },
  "luminance": 0.35847
}

Semantic roles & 50–950 ramp

primary
#AFA42C
secondary
#7279C5
accent
#52E345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA42C

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

Preview Lab → · Contrast checker → · Palette generator →

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