#AF9C30#AF9C30

#AF9C30 is a light, vivid yellow. Relative luminance 0.331; OKLCH L 69.0% C 0.126 H 99.0°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AF9C30
RGBrgb(175, 156, 48)
HSLhsl(51, 57%, 44%)
HSVhsv(51, 73%, 69%)
CMYKcmyk(0%, 10.9%, 72.6%, 31.4%)
CIE-LABlab(64.25, -5.07, 56.01)
CIE-LCHlch(64.25, 56.24, 95.17°)
OKLaboklab(69.01% -0.0196 0.1242)
OKLCHoklch(69.01% 0.126 99)
XYZxyz(30.1026, 33.1058, 7.6002)
Luminance0.3310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C30 #3043AF
analogous
#AF5C30 #AF9C30 #82AF30
triadic
#AF9C30 #30AF9C #9C30AF
tetradic
#AF9C30 #30AF5C #3043AF #AF3082
square
#AF9C30 #30AF5C #3043AF #AF3082
split-complementary
#AF9C30 #3082AF #5C30AF
monochromatic
#4F4616 #7F7123 #AF9C30 #CEBB4E #DCCE7E

Accessibility & contrast

On white

2.76
#AF9C30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#AF9C30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C30
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C30#FFFFFF#000000##000000
##AF9C301.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB981F
Deuteranopia (green-blind)
#B09F37
Tritanopia (blue-blind)
#BD9087
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c30;
/* rgb */ color: rgb(175, 156, 48);
/* oklch */ color: oklch(69.0% 0.126 99.0);
Tailwind
colors: {
  custom: {
    50: '#cab870',
    500: '#af9c30',
    950: '#000000',
  },
}
SCSS
$custom: #af9c30;
$custom-light: #cab870;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c30",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 48
  },
  "hsl": {
    "h": 51.024,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.69007,
    "c": 0.12569,
    "h": 99
  },
  "luminance": 0.33104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9C30

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

Preview Lab → · Contrast checker → · Palette generator →

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