#AF9E2C#AF9E2C

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

Color values

HEX#AF9E2C
RGBrgb(175, 158, 44)
HSLhsl(52, 60%, 43%)
HSVhsv(52, 75%, 69%)
CMYKcmyk(0%, 9.7%, 74.9%, 31.4%)
CIE-LABlab(64.76, -6.33, 58.01)
CIE-LCHlch(64.76, 58.35, 96.22°)
OKLaboklab(69.41% -0.0236 0.1276)
OKLCHoklch(69.41% 0.13 100.5)
XYZxyz(30.3621, 33.7510, 7.2977)
Luminance0.3375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E2C #2C3DAF
analogous
#AF5D2C #AF9E2C #7EAF2C
triadic
#AF9E2C #2CAF9E #9E2CAF
tetradic
#AF9E2C #2CAF5D #2C3DAF #AF2C7E
square
#AF9E2C #2CAF5D #2C3DAF #AF2C7E
split-complementary
#AF9E2C #2C7EAF #5D2CAF
monochromatic
#4D4613 #7E7220 #AF9E2C #D1BF47 #DDD078

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9E2C#FFFFFF#000000##000000
##AF9E2C1.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)
#AD9917
Deuteranopia (green-blind)
#B2A034
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e2c;
/* rgb */ color: rgb(175, 158, 44);
/* oklch */ color: oklch(69.4% 0.130 100.5);
Tailwind
colors: {
  custom: {
    50: '#cbba6e',
    500: '#af9e2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9e2c;
$custom-light: #cbba6e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e2c",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 44
  },
  "hsl": {
    "h": 52.214,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.6941,
    "c": 0.12979,
    "h": 100.5
  },
  "luminance": 0.3375
}

Semantic roles & 50–950 ramp

primary
#AF9E2C
secondary
#727DC5
accent
#59E345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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