#AFA62F#AFA62F

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

Color values

HEX#AFA62F
RGBrgb(175, 166, 47)
HSLhsl(56, 58%, 44%)
HSVhsv(56, 73%, 69%)
CMYKcmyk(0%, 5.1%, 73.1%, 31.4%)
CIE-LABlab(66.97, -10.41, 59.02)
CIE-LCHlch(66.97, 59.94, 100.01°)
OKLaboklab(71.17% -0.0348 0.1304)
OKLCHoklch(71.17% 0.135 105)
XYZxyz(31.8298, 36.5929, 8.0753)
Luminance0.3659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA62F #2F38AF
analogous
#AF662F #AFA62F #78AF2F
triadic
#AFA62F #2FAFA6 #A62FAF
tetradic
#AFA62F #2FAF66 #2F38AF #AF2F78
square
#AFA62F #2FAF66 #2F38AF #AF2F78
split-complementary
#AFA62F #2F78AF #662FAF
monochromatic
#4F4A15 #7F7822 #AFA62F #CFC64C #DCD57C

Accessibility & contrast

On white

2.52
#AFA62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA62F#FFFFFF#000000##000000
##AFA62F1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa62f;
/* rgb */ color: rgb(175, 166, 47);
/* oklch */ color: oklch(71.2% 0.135 105.0);
Tailwind
colors: {
  custom: {
    50: '#cac070',
    500: '#afa62f',
    950: '#000000',
  },
}
SCSS
$custom: #afa62f;
$custom-light: #cac070;
$custom-dark: #000000;
JSON
{
  "hex": "#afa62f",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 55.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71169,
    "c": 0.13492,
    "h": 105
  },
  "luminance": 0.36592
}

Semantic roles & 50–950 ramp

primary
#AFA62F
secondary
#757BC4
accent
#52E147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA62F

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

Preview Lab → · Contrast checker → · Palette generator →

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