#AF9B27#AF9B27

#AF9B27 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.7% C 0.130 H 98.9°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AF9B27
RGBrgb(175, 155, 39)
HSLhsl(51, 64%, 42%)
HSVhsv(51, 78%, 69%)
CMYKcmyk(0%, 11.4%, 77.7%, 31.4%)
CIE-LABlab(63.92, -4.93, 58.98)
CIE-LCHlch(63.92, 59.18, 94.78°)
OKLaboklab(68.73% -0.0201 0.1287)
OKLCHoklch(68.73% 0.13 98.9)
XYZxyz(29.7683, 32.7046, 6.6637)
Luminance0.3270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B27 #273BAF
analogous
#AF5727 #AF9B27 #7FAF27
triadic
#AF9B27 #27AF9B #9B27AF
tetradic
#AF9B27 #27AF57 #273BAF #AF277F
square
#AF9B27 #27AF57 #273BAF #AF277F
split-complementary
#AF9B27 #277FAF #5727AF
monochromatic
#4B4211 #7D6F1C #AF9B27 #D4BE3F #DFCF71

Accessibility & contrast

On white

2.78
#AF9B27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#AF9B27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B27
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B27#FFFFFF#000000##000000
##AF9B271.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970D
Deuteranopia (green-blind)
#B09E2F
Tritanopia (blue-blind)
#BD8F85
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b27;
/* rgb */ color: rgb(175, 155, 39);
/* oklch */ color: oklch(68.7% 0.130 98.9);
Tailwind
colors: {
  custom: {
    50: '#cbb86b',
    500: '#af9b27',
    950: '#000000',
  },
}
SCSS
$custom: #af9b27;
$custom-light: #cbb86b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b27",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 39
  },
  "hsl": {
    "h": 51.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.68732,
    "c": 0.13027,
    "h": 98.9
  },
  "luminance": 0.32703
}

Semantic roles & 50–950 ramp

primary
#AF9B27
secondary
#6B79C6
accent
#5AE741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9B27

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

Preview Lab → · Contrast checker → · Palette generator →

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