#AF9C27#AF9C27

#AF9C27 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.9% C 0.131 H 99.5°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF9C27
RGBrgb(175, 156, 39)
HSLhsl(52, 64%, 42%)
HSVhsv(52, 78%, 69%)
CMYKcmyk(0%, 10.9%, 77.7%, 31.4%)
CIE-LABlab(64.19, -5.47, 59.23)
CIE-LCHlch(64.19, 59.48, 95.28°)
OKLaboklab(68.95% -0.0217 0.1292)
OKLCHoklch(68.95% 0.131 99.5)
XYZxyz(29.9354, 33.0389, 6.7194)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C27 #273AAF
analogous
#AF5827 #AF9C27 #7EAF27
triadic
#AF9C27 #27AF9C #9C27AF
tetradic
#AF9C27 #27AF58 #273AAF #AF277E
square
#AF9C27 #27AF58 #273AAF #AF277E
split-complementary
#AF9C27 #277EAF #5827AF
monochromatic
#4B4311 #7D6F1C #AF9C27 #D4BF3F #DFD071

Accessibility & contrast

On white

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

On black

7.61
#AF9C27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C27
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C27#FFFFFF#000000##000000
##AF9C271.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC980C
Deuteranopia (green-blind)
#B19F2F
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c27;
/* rgb */ color: rgb(175, 156, 39);
/* oklch */ color: oklch(68.9% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#cbb86b',
    500: '#af9c27',
    950: '#000000',
  },
}
SCSS
$custom: #af9c27;
$custom-light: #cbb86b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c27",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 39
  },
  "hsl": {
    "h": 51.618,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.68947,
    "c": 0.13103,
    "h": 99.5
  },
  "luminance": 0.33037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9C27

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

Preview Lab → · Contrast checker → · Palette generator →

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