#AF9F30#AF9F30

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

Color values

HEX#AF9F30
RGBrgb(175, 159, 48)
HSLhsl(52, 57%, 44%)
HSVhsv(52, 73%, 69%)
CMYKcmyk(0%, 9.1%, 72.6%, 31.4%)
CIE-LABlab(65.06, -6.67, 56.80)
CIE-LCHlch(65.06, 57.20, 96.70°)
OKLaboklab(69.65% -0.0241 0.1258)
OKLCHoklch(69.65% 0.128 100.9)
XYZxyz(30.6122, 34.1250, 7.7701)
Luminance0.3412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F30 #3040AF
analogous
#AF5F30 #AF9F30 #7FAF30
triadic
#AF9F30 #30AF9F #9F30AF
tetradic
#AF9F30 #30AF5F #3040AF #AF307F
square
#AF9F30 #30AF5F #3040AF #AF307F
split-complementary
#AF9F30 #307FAF #5F30AF
monochromatic
#4F4816 #7F7323 #AF9F30 #CEBE4E #DCD07E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9F30#FFFFFF#000000##000000
##AF9F301.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9f30;
/* rgb */ color: rgb(175, 159, 48);
/* oklch */ color: oklch(69.7% 0.128 100.9);
Tailwind
colors: {
  custom: {
    50: '#cabb70',
    500: '#af9f30',
    950: '#000000',
  },
}
SCSS
$custom: #af9f30;
$custom-light: #cabb70;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f30",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 48
  },
  "hsl": {
    "h": 52.441,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.69654,
    "c": 0.12814,
    "h": 100.9
  },
  "luminance": 0.34124
}

Semantic roles & 50–950 ramp

primary
#AF9F30
secondary
#7680C4
accent
#5BE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F30

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

Preview Lab → · Contrast checker → · Palette generator →

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