#AF9F34#AF9F34

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

Color values

HEX#AF9F34
RGBrgb(175, 159, 52)
HSLhsl(52, 54%, 45%)
HSVhsv(52, 70%, 69%)
CMYKcmyk(0%, 9.1%, 70.3%, 31.4%)
CIE-LABlab(65.09, -6.47, 55.26)
CIE-LCHlch(65.09, 55.64, 96.67°)
OKLaboklab(69.68% -0.0231 0.1233)
OKLCHoklch(69.68% 0.125 100.6)
XYZxyz(30.6985, 34.1595, 8.2246)
Luminance0.3416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F34 #3444AF
analogous
#AF6234 #AF9F34 #82AF34
triadic
#AF9F34 #34AF9F #9F34AF
tetradic
#AF9F34 #34AF62 #3444AF #AF3482
square
#AF9F34 #34AF62 #3444AF #AF3482
split-complementary
#AF9F34 #3482AF #6234AF
monochromatic
#514918 #807426 #AF9F34 #CCBD54 #DACF83

Accessibility & contrast

On white

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

On black

7.83
#AF9F34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F34
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F34#FFFFFF#000000##000000
##AF9F341.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9f34;
/* rgb */ color: rgb(175, 159, 52);
/* oklch */ color: oklch(69.7% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#cabb72',
    500: '#af9f34',
    950: '#000000',
  },
}
SCSS
$custom: #af9f34;
$custom-light: #cabb72;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f34",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 52
  },
  "hsl": {
    "h": 52.195,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.69684,
    "c": 0.12547,
    "h": 100.6
  },
  "luminance": 0.34158
}

Semantic roles & 50–950 ramp

primary
#AF9F34
secondary
#7B85C4
accent
#5DDE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F34

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

Preview Lab → · Contrast checker → · Palette generator →

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