#AF9E30#AF9E30

#AF9E30 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.4% C 0.127 H 100.2°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#AF9E30
RGBrgb(175, 158, 48)
HSLhsl(52, 57%, 44%)
HSVhsv(52, 73%, 69%)
CMYKcmyk(0%, 9.7%, 72.6%, 31.4%)
CIE-LABlab(64.79, -6.14, 56.54)
CIE-LCHlch(64.79, 56.87, 96.20°)
OKLaboklab(69.44% -0.0226 0.1253)
OKLCHoklch(69.44% 0.127 100.2)
XYZxyz(30.4410, 33.7825, 7.7130)
Luminance0.3378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E30 #3041AF
analogous
#AF5E30 #AF9E30 #80AF30
triadic
#AF9E30 #30AF9E #9E30AF
tetradic
#AF9E30 #30AF5E #3041AF #AF3080
square
#AF9E30 #30AF5E #3041AF #AF3080
split-complementary
#AF9E30 #3080AF #5E30AF
monochromatic
#4F4716 #7F7323 #AF9E30 #CEBD4E #DCCF7E

Accessibility & contrast

On white

2.71
#AF9E30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#AF9E30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E30
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E30#FFFFFF#000000##000000
##AF9E301.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A1E
Deuteranopia (green-blind)
#B2A037
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e30;
/* rgb */ color: rgb(175, 158, 48);
/* oklch */ color: oklch(69.4% 0.127 100.2);
Tailwind
colors: {
  custom: {
    50: '#caba70',
    500: '#af9e30',
    950: '#000000',
  },
}
SCSS
$custom: #af9e30;
$custom-light: #caba70;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e30",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 48
  },
  "hsl": {
    "h": 51.969,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.69438,
    "c": 0.12731,
    "h": 100.2
  },
  "luminance": 0.33781
}

Semantic roles & 50–950 ramp

primary
#AF9E30
secondary
#7681C4
accent
#5CE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E30

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

Preview Lab → · Contrast checker → · Palette generator →

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