#AF9E2A#AF9E2A

#AF9E2A is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.4% C 0.131 H 100.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF9E2A
RGBrgb(175, 158, 42)
HSLhsl(52, 61%, 43%)
HSVhsv(52, 76%, 69%)
CMYKcmyk(0%, 9.7%, 76%, 31.4%)
CIE-LABlab(64.75, -6.41, 58.71)
CIE-LCHlch(64.75, 59.06, 96.23°)
OKLaboklab(69.4% -0.024 0.1287)
OKLCHoklch(69.4% 0.131 100.6)
XYZxyz(30.3254, 33.7363, 7.1044)
Luminance0.3373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E2A #2A3BAF
analogous
#AF5C2A #AF9E2A #7DAF2A
triadic
#AF9E2A #2AAF9E #9E2AAF
tetradic
#AF9E2A #2AAF5C #2A3BAF #AF2A7D
square
#AF9E2A #2AAF5C #2A3BAF #AF2A7D
split-complementary
#AF9E2A #2A7DAF #5C2AAF
monochromatic
#4C4512 #7E711E #AF9E2A #D2C044 #DED175

Accessibility & contrast

On white

2.71
#AF9E2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF9E2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E2A
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E2A#FFFFFF#000000##000000
##AF9E2A1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9912
Deuteranopia (green-blind)
#B2A032
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e2a;
/* rgb */ color: rgb(175, 158, 42);
/* oklch */ color: oklch(69.4% 0.131 100.6);
Tailwind
colors: {
  custom: {
    50: '#cbba6d',
    500: '#af9e2a',
    950: '#000000',
  },
}
SCSS
$custom: #af9e2a;
$custom-light: #cbba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e2a",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 42
  },
  "hsl": {
    "h": 52.331,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69397,
    "c": 0.13095,
    "h": 100.6
  },
  "luminance": 0.33735
}

Semantic roles & 50–950 ramp

primary
#AF9E2A
secondary
#6F7AC6
accent
#58E443
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AF9E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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