#AFA62E#AFA62E

#AFA62E is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.136 H 105.0°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA62E
RGBrgb(175, 166, 46)
HSLhsl(56, 58%, 43%)
HSVhsv(56, 74%, 69%)
CMYKcmyk(0%, 5.1%, 73.7%, 31.4%)
CIE-LABlab(66.96, -10.46, 59.38)
CIE-LCHlch(66.96, 60.29, 99.99°)
OKLaboklab(71.16% -0.035 0.1309)
OKLCHoklch(71.16% 0.136 105)
XYZxyz(31.8099, 36.5849, 7.9702)
Luminance0.3658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA62E #2E37AF
analogous
#AF652E #AFA62E #77AF2E
triadic
#AFA62E #2EAFA6 #A62EAF
tetradic
#AFA62E #2EAF65 #2E37AF #AF2E77
square
#AFA62E #2EAF65 #2E37AF #AF2E77
split-complementary
#AFA62E #2E77AF #652EAF
monochromatic
#4E4A15 #7F7821 #AFA62E #D0C64B #DCD67B

Accessibility & contrast

On white

2.53
#AFA62E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#AFA62E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA62E
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA62E#FFFFFF#000000##000000
##AFA62E1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A017
Deuteranopia (green-blind)
#B8A537
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa62e;
/* rgb */ color: rgb(175, 166, 46);
/* oklch */ color: oklch(71.2% 0.136 105.0);
Tailwind
colors: {
  custom: {
    50: '#cac070',
    500: '#afa62e',
    950: '#000000',
  },
}
SCSS
$custom: #afa62e;
$custom-light: #cac070;
$custom-dark: #000000;
JSON
{
  "hex": "#afa62e",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 46
  },
  "hsl": {
    "h": 55.814,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.71163,
    "c": 0.13552,
    "h": 105
  },
  "luminance": 0.36584
}

Semantic roles & 50–950 ramp

primary
#AFA62E
secondary
#747AC5
accent
#51E246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA62E

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

Preview Lab → · Contrast checker → · Palette generator →

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