#AF9F2A#AF9F2A

#AF9F2A is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.132 H 101.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#AF9F2A
RGBrgb(175, 159, 42)
HSLhsl(53, 61%, 43%)
HSVhsv(53, 76%, 69%)
CMYKcmyk(0%, 9.1%, 76%, 31.4%)
CIE-LABlab(65.03, -6.95, 58.97)
CIE-LCHlch(65.03, 59.37, 96.72°)
OKLaboklab(69.61% -0.0255 0.1293)
OKLCHoklch(69.61% 0.132 101.2)
XYZxyz(30.4967, 34.0788, 7.1615)
Luminance0.3408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F2A #2A3AAF
analogous
#AF5D2A #AF9F2A #7CAF2A
triadic
#AF9F2A #2AAF9F #9F2AAF
tetradic
#AF9F2A #2AAF5D #2A3AAF #AF2A7C
square
#AF9F2A #2AAF5D #2A3AAF #AF2A7C
split-complementary
#AF9F2A #2A7CAF #5D2AAF
monochromatic
#4C4512 #7E721E #AF9F2A #D2C144 #DED175

Accessibility & contrast

On white

2.69
#AF9F2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#AF9F2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F2A
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F2A#FFFFFF#000000##000000
##AF9F2A1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A12
Deuteranopia (green-blind)
#B3A132
Tritanopia (blue-blind)
#BD9389
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f2a;
/* rgb */ color: rgb(175, 159, 42);
/* oklch */ color: oklch(69.6% 0.132 101.2);
Tailwind
colors: {
  custom: {
    50: '#cbbb6d',
    500: '#af9f2a',
    950: '#000000',
  },
}
SCSS
$custom: #af9f2a;
$custom-light: #cbbb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f2a",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 42
  },
  "hsl": {
    "h": 52.782,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69613,
    "c": 0.13177,
    "h": 101.2
  },
  "luminance": 0.34077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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