#AF9D27#AF9D27

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

Color values

HEX#AF9D27
RGBrgb(175, 157, 39)
HSLhsl(52, 64%, 42%)
HSVhsv(52, 78%, 69%)
CMYKcmyk(0%, 10.3%, 77.7%, 31.4%)
CIE-LABlab(64.46, -6.00, 59.48)
CIE-LCHlch(64.46, 59.78, 95.76°)
OKLaboklab(69.16% -0.0232 0.1298)
OKLCHoklch(69.16% 0.132 100.1)
XYZxyz(30.1039, 33.3758, 6.7756)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D27 #2739AF
analogous
#AF5927 #AF9D27 #7DAF27
triadic
#AF9D27 #27AF9D #9D27AF
tetradic
#AF9D27 #27AF59 #2739AF #AF277D
square
#AF9D27 #27AF59 #2739AF #AF277D
split-complementary
#AF9D27 #277DAF #5927AF
monochromatic
#4B4311 #7D701C #AF9D27 #D4C03F #DFD171

Accessibility & contrast

On white

2.74
#AF9D27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AF9D27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D27
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D27#FFFFFF#000000##000000
##AF9D271.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9d27;
/* rgb */ color: rgb(175, 157, 39);
/* oklch */ color: oklch(69.2% 0.132 100.1);
Tailwind
colors: {
  custom: {
    50: '#cbb96b',
    500: '#af9d27',
    950: '#000000',
  },
}
SCSS
$custom: #af9d27;
$custom-light: #cbb96b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d27",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 39
  },
  "hsl": {
    "h": 52.059,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69163,
    "c": 0.13182,
    "h": 100.1
  },
  "luminance": 0.33374
}

Semantic roles & 50–950 ramp

primary
#AF9D27
secondary
#6B78C6
accent
#57E741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9D27

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

Preview Lab → · Contrast checker → · Palette generator →

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