#AFA62B#AFA62B

#AFA62B is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.1% C 0.137 H 105.1°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA62B
RGBrgb(175, 166, 43)
HSLhsl(56, 61%, 43%)
HSVhsv(56, 75%, 69%)
CMYKcmyk(0%, 5.1%, 75.4%, 31.4%)
CIE-LABlab(66.95, -10.59, 60.41)
CIE-LCHlch(66.95, 61.34, 99.95°)
OKLaboklab(71.14% -0.0357 0.1326)
OKLCHoklch(71.14% 0.137 105.1)
XYZxyz(31.7528, 36.5621, 7.6696)
Luminance0.3656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA62B #2B34AF
analogous
#AF642B #AFA62B #76AF2B
triadic
#AFA62B #2BAFA6 #A62BAF
tetradic
#AFA62B #2BAF64 #2B34AF #AF2B76
square
#AFA62B #2BAF64 #2B34AF #AF2B76
split-complementary
#AFA62B #2B76AF #642BAF
monochromatic
#4D4913 #7E771F #AFA62B #D1C846 #DED777

Accessibility & contrast

On white

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

On black

8.31
#AFA62B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA62B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA62B#FFFFFF#000000##000000
##AFA62B1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa62b;
/* rgb */ color: rgb(175, 166, 43);
/* oklch */ color: oklch(71.1% 0.137 105.1);
Tailwind
colors: {
  custom: {
    50: '#cbc06e',
    500: '#afa62b',
    950: '#000000',
  },
}
SCSS
$custom: #afa62b;
$custom-light: #cbc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa62b",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 43
  },
  "hsl": {
    "h": 55.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71143,
    "c": 0.13728,
    "h": 105.1
  },
  "luminance": 0.36561
}

Semantic roles & 50–950 ramp

primary
#AFA62B
secondary
#7076C5
accent
#4FE444
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA62B

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

Preview Lab → · Contrast checker → · Palette generator →

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