#AFA42E#AFA42E

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

Color values

HEX#AFA42E
RGBrgb(175, 164, 46)
HSLhsl(55, 58%, 43%)
HSVhsv(55, 74%, 69%)
CMYKcmyk(0%, 6.3%, 73.7%, 31.4%)
CIE-LABlab(66.42, -9.41, 58.86)
CIE-LCHlch(66.42, 59.60, 99.08°)
OKLaboklab(70.73% -0.0321 0.1298)
OKLCHoklch(70.73% 0.134 103.9)
XYZxyz(31.4492, 35.8634, 7.8500)
Luminance0.3586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA42E #2E39AF
analogous
#AF632E #AFA42E #79AF2E
triadic
#AFA42E #2EAFA4 #A42EAF
tetradic
#AFA42E #2EAF63 #2E39AF #AF2E79
square
#AFA42E #2EAF63 #2E39AF #AF2E79
split-complementary
#AFA42E #2E79AF #632EAF
monochromatic
#4E4915 #7F7721 #AFA42E #D0C44B #DCD47B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA42E#FFFFFF#000000##000000
##AFA42E1.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)
#B39E18
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa42e;
/* rgb */ color: rgb(175, 164, 46);
/* oklch */ color: oklch(70.7% 0.134 103.9);
Tailwind
colors: {
  custom: {
    50: '#cabe6f',
    500: '#afa42e',
    950: '#000000',
  },
}
SCSS
$custom: #afa42e;
$custom-light: #cabe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa42e",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 54.884,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70726,
    "c": 0.13372,
    "h": 103.9
  },
  "luminance": 0.35862
}

Semantic roles & 50–950 ramp

primary
#AFA42E
secondary
#747BC5
accent
#53E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA42E

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

Preview Lab → · Contrast checker → · Palette generator →

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