#AF9D30#AF9D30

#AF9D30 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.2% C 0.126 H 99.6°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#AF9D30
RGBrgb(175, 157, 48)
HSLhsl(51, 57%, 44%)
HSVhsv(51, 73%, 69%)
CMYKcmyk(0%, 10.3%, 72.6%, 31.4%)
CIE-LABlab(64.52, -5.60, 56.27)
CIE-LCHlch(64.52, 56.55, 95.69°)
OKLaboklab(69.22% -0.0211 0.1247)
OKLCHoklch(69.22% 0.126 99.6)
XYZxyz(30.2711, 33.4427, 7.6563)
Luminance0.3344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D30 #3042AF
analogous
#AF5D30 #AF9D30 #81AF30
triadic
#AF9D30 #30AF9D #9D30AF
tetradic
#AF9D30 #30AF5D #3042AF #AF3081
square
#AF9D30 #30AF5D #3042AF #AF3081
split-complementary
#AF9D30 #3081AF #5D30AF
monochromatic
#4F4716 #7F7223 #AF9D30 #CEBC4E #DCCE7E

Accessibility & contrast

On white

2.73
#AF9D30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#AF9D30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D30
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D30#FFFFFF#000000##000000
##AF9D301.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC991E
Deuteranopia (green-blind)
#B19F37
Tritanopia (blue-blind)
#BD9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d30;
/* rgb */ color: rgb(175, 157, 48);
/* oklch */ color: oklch(69.2% 0.126 99.6);
Tailwind
colors: {
  custom: {
    50: '#cab970',
    500: '#af9d30',
    950: '#000000',
  },
}
SCSS
$custom: #af9d30;
$custom-light: #cab970;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d30",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 48
  },
  "hsl": {
    "h": 51.496,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.69222,
    "c": 0.12649,
    "h": 99.6
  },
  "luminance": 0.33441
}

Semantic roles & 50–950 ramp

primary
#AF9D30
secondary
#7682C4
accent
#5DE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9D30

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

Preview Lab → · Contrast checker → · Palette generator →

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