#AF9F24#AF9F24

#AF9F24 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.6% C 0.135 H 101.4°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF9F24
RGBrgb(175, 159, 36)
HSLhsl(53, 66%, 41%)
HSVhsv(53, 79%, 69%)
CMYKcmyk(0%, 9.1%, 79.4%, 31.4%)
CIE-LABlab(64.99, -7.18, 60.93)
CIE-LCHlch(64.99, 61.35, 96.72°)
OKLaboklab(69.58% -0.0268 0.1323)
OKLCHoklch(69.58% 0.135 101.4)
XYZxyz(30.3972, 34.0390, 6.6378)
Luminance0.3404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F24 #2434AF
analogous
#AF5A24 #AF9F24 #7AAF24
triadic
#AF9F24 #24AF9F #9F24AF
tetradic
#AF9F24 #24AF5A #2434AF #AF247A
square
#AF9F24 #24AF5A #2434AF #AF247A
split-complementary
#AF9F24 #247AAF #5A24AF
monochromatic
#49430F #7C711A #AF9F24 #D6C43A #E1D36D

Accessibility & contrast

On white

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

On black

7.81
#AF9F24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F24
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F24#FFFFFF#000000##000000
##AF9F241.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A01
Deuteranopia (green-blind)
#B3A12E
Tritanopia (blue-blind)
#BD9388
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f24;
/* rgb */ color: rgb(175, 159, 36);
/* oklch */ color: oklch(69.6% 0.135 101.4);
Tailwind
colors: {
  custom: {
    50: '#cbbb6a',
    500: '#af9f24',
    950: '#000000',
  },
}
SCSS
$custom: #af9f24;
$custom-light: #cbbb6a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f24",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 36
  },
  "hsl": {
    "h": 53.094,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69578,
    "c": 0.13496,
    "h": 101.4
  },
  "luminance": 0.34038
}

Semantic roles & 50–950 ramp

primary
#AF9F24
secondary
#6873C7
accent
#53E93F
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9F24

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

Preview Lab → · Contrast checker → · Palette generator →

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