#AF9B2C#AF9B2C

#AF9B2C is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.8% C 0.127 H 98.6°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AF9B2C
RGBrgb(175, 155, 44)
HSLhsl(51, 60%, 43%)
HSVhsv(51, 75%, 69%)
CMYKcmyk(0%, 11.4%, 74.9%, 31.4%)
CIE-LABlab(63.95, -4.72, 57.23)
CIE-LCHlch(63.95, 57.43, 94.72°)
OKLaboklab(68.76% -0.019 0.126)
OKLCHoklch(68.76% 0.127 98.6)
XYZxyz(29.8566, 32.7400, 7.1292)
Luminance0.3274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B2C #2C40AF
analogous
#AF5A2C #AF9B2C #81AF2C
triadic
#AF9B2C #2CAF9B #9B2CAF
tetradic
#AF9B2C #2CAF5A #2C40AF #AF2C81
square
#AF9B2C #2CAF5A #2C40AF #AF2C81
split-complementary
#AF9B2C #2C81AF #5A2CAF
monochromatic
#4D4413 #7E7020 #AF9B2C #D1BC47 #DDCE78

Accessibility & contrast

On white

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

On black

7.55
#AF9B2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B2C
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B2C#FFFFFF#000000##000000
##AF9B2C1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9b2c;
/* rgb */ color: rgb(175, 155, 44);
/* oklch */ color: oklch(68.8% 0.127 98.6);
Tailwind
colors: {
  custom: {
    50: '#cbb86d',
    500: '#af9b2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9b2c;
$custom-light: #cbb86d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b2c",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 44
  },
  "hsl": {
    "h": 50.84,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.68764,
    "c": 0.12741,
    "h": 98.6
  },
  "luminance": 0.32738
}

Semantic roles & 50–950 ramp

primary
#AF9B2C
secondary
#727EC5
accent
#5DE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AF9B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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