#AF9927#AF9927

#AF9927 is a light, vivid yellow. Relative luminance 0.320; OKLCH L 68.3% C 0.129 H 97.6°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#AF9927
RGBrgb(175, 153, 39)
HSLhsl(50, 64%, 42%)
HSVhsv(50, 78%, 69%)
CMYKcmyk(0%, 12.6%, 77.7%, 31.4%)
CIE-LABlab(63.38, -3.86, 58.48)
CIE-LCHlch(63.38, 58.61, 93.78°)
OKLaboklab(68.3% -0.0171 0.1276)
OKLCHoklch(68.3% 0.129 97.6)
XYZxyz(29.4382, 32.0445, 6.5537)
Luminance0.3204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9927 #273DAF
analogous
#AF5527 #AF9927 #81AF27
triadic
#AF9927 #27AF99 #9927AF
tetradic
#AF9927 #27AF55 #273DAF #AF2781
square
#AF9927 #27AF55 #273DAF #AF2781
split-complementary
#AF9927 #2781AF #5527AF
monochromatic
#4B4111 #7D6D1C #AF9927 #D4BC3F #DFCE71

Accessibility & contrast

On white

2.83
#AF9927 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#AF9927 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9927
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9927#FFFFFF#000000##000000
##AF99271.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9950E
Deuteranopia (green-blind)
#AF9D2F
Tritanopia (blue-blind)
#BD8D83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9927;
/* rgb */ color: rgb(175, 153, 39);
/* oklch */ color: oklch(68.3% 0.129 97.6);
Tailwind
colors: {
  custom: {
    50: '#cbb66b',
    500: '#af9927',
    950: '#000000',
  },
}
SCSS
$custom: #af9927;
$custom-light: #cbb66b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9927",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 39
  },
  "hsl": {
    "h": 50.294,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.68303,
    "c": 0.12878,
    "h": 97.6
  },
  "luminance": 0.32043
}

Semantic roles & 50–950 ramp

primary
#AF9927
secondary
#6B7AC6
accent
#5CE741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9927

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

Preview Lab → · Contrast checker → · Palette generator →

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