#AFB951#AFB951

#AFB951 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.7% C 0.129 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#AFB951
RGBrgb(175, 185, 81)
HSLhsl(66, 43%, 52%)
HSVhsv(66, 56%, 73%)
CMYKcmyk(5.4%, 0%, 56.2%, 27.5%)
CIE-LABlab(72.50, -17.99, 50.62)
CIE-LCHlch(72.50, 53.72, 109.56°)
OKLaboklab(75.67% -0.0526 0.1177)
OKLCHoklch(75.67% 0.129 114.1)
XYZxyz(36.5141, 44.4066, 14.4308)
Luminance0.4441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB951 #5B51B9
analogous
#B98F51 #AFB951 #7BB951
triadic
#AFB951 #51AFB9 #B951AF
tetradic
#AFB951 #51B98F #5B51B9 #B9517B
square
#AFB951 #51B98F #5B51B9 #B9517B
split-complementary
#AFB951 #517BB9 #8F51B9
monochromatic
#616629 #8A923B #AFB951 #C3CB7D #D7DCA8

Accessibility & contrast

On white

2.13
#AFB951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#AFB951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB951
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB951#FFFFFF#000000##000000
##AFB9511.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B146
Deuteranopia (green-blind)
#C5B357
Tritanopia (blue-blind)
#B9AFA2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb951;
/* rgb */ color: rgb(175, 185, 81);
/* oklch */ color: oklch(75.7% 0.129 114.1);
Tailwind
colors: {
  custom: {
    50: '#c9cd85',
    500: '#afb951',
    950: '#000000',
  },
}
SCSS
$custom: #afb951;
$custom-light: #c9cd85;
$custom-dark: #000000;
JSON
{
  "hex": "#afb951",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 65.769,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7567,
    "c": 0.12887,
    "h": 114.1
  },
  "luminance": 0.44406
}

Semantic roles & 50–950 ramp

primary
#AFB951
secondary
#A19CCA
accent
#55D261
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB951

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

Preview Lab → · Contrast checker → · Palette generator →

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