#AF9F37#AF9F37

#AF9F37 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.7% C 0.123 H 100.4°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#AF9F37
RGBrgb(175, 159, 55)
HSLhsl(52, 52%, 45%)
HSVhsv(52, 69%, 69%)
CMYKcmyk(0%, 9.1%, 68.6%, 31.4%)
CIE-LABlab(65.11, -6.30, 54.06)
CIE-LCHlch(65.11, 54.43, 96.65°)
OKLaboklab(69.71% -0.0223 0.1213)
OKLCHoklch(69.71% 0.123 100.4)
XYZxyz(30.7683, 34.1874, 8.5918)
Luminance0.3419 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F37 #3747AF
analogous
#AF6337 #AF9F37 #83AF37
triadic
#AF9F37 #37AF9F #9F37AF
tetradic
#AF9F37 #37AF63 #3747AF #AF3783
square
#AF9F37 #37AF63 #3747AF #AF3783
split-complementary
#AF9F37 #3783AF #6337AF
monochromatic
#524A1A #807528 #AF9F37 #CBBB59 #D9CE87

Accessibility & contrast

On white

2.68
#AF9F37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#AF9F37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F37
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F37#FFFFFF#000000##000000
##AF9F371.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B29
Deuteranopia (green-blind)
#B2A13D
Tritanopia (blue-blind)
#BC948A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f37;
/* rgb */ color: rgb(175, 159, 55);
/* oklch */ color: oklch(69.7% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#cabb74',
    500: '#af9f37',
    950: '#000000',
  },
}
SCSS
$custom: #af9f37;
$custom-light: #cabb74;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f37",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 55
  },
  "hsl": {
    "h": 52,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.69709,
    "c": 0.12334,
    "h": 100.4
  },
  "luminance": 0.34186
}

Semantic roles & 50–950 ramp

primary
#AF9F37
secondary
#7F88C3
accent
#5FDC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F37

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

Preview Lab → · Contrast checker → · Palette generator →

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