#AF9B2D#AF9B2D

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

Color values

HEX#AF9B2D
RGBrgb(175, 155, 45)
HSLhsl(51, 59%, 43%)
HSVhsv(51, 74%, 69%)
CMYKcmyk(0%, 11.4%, 74.3%, 31.4%)
CIE-LABlab(63.96, -4.68, 56.87)
CIE-LCHlch(63.96, 57.06, 94.70°)
OKLaboklab(68.77% -0.0188 0.1254)
OKLCHoklch(68.77% 0.127 98.5)
XYZxyz(29.8757, 32.7476, 7.2294)
Luminance0.3275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B2D #2D41AF
analogous
#AF5A2D #AF9B2D #82AF2D
triadic
#AF9B2D #2DAF9B #9B2DAF
tetradic
#AF9B2D #2DAF5A #2D41AF #AF2D82
square
#AF9B2D #2DAF5A #2D41AF #AF2D82
split-complementary
#AF9B2D #2D82AF #5A2DAF
monochromatic
#4E4514 #7E7020 #AF9B2D #D0BB49 #DDCD7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9B2D#FFFFFF#000000##000000
##AF9B2D1.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)
#AB971A
Deuteranopia (green-blind)
#B09E34
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b2d;
/* rgb */ color: rgb(175, 155, 45);
/* oklch */ color: oklch(68.8% 0.127 98.5);
Tailwind
colors: {
  custom: {
    50: '#cbb86e',
    500: '#af9b2d',
    950: '#000000',
  },
}
SCSS
$custom: #af9b2d;
$custom-light: #cbb86e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b2d",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 45
  },
  "hsl": {
    "h": 50.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.68771,
    "c": 0.1268,
    "h": 98.5
  },
  "luminance": 0.32746
}

Semantic roles & 50–950 ramp

primary
#AF9B2D
secondary
#7380C5
accent
#5EE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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