#AFB954#AFB954

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

Color values

HEX#AFB954
RGBrgb(175, 185, 84)
HSLhsl(66, 42%, 53%)
HSVhsv(66, 55%, 73%)
CMYKcmyk(5.4%, 0%, 54.6%, 27.5%)
CIE-LABlab(72.53, -17.74, 49.26)
CIE-LCHlch(72.53, 52.36, 109.80°)
OKLaboklab(75.7% -0.0516 0.1151)
OKLCHoklch(75.7% 0.126 114.1)
XYZxyz(36.6291, 44.4526, 15.0364)
Luminance0.4445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB954 #5E54B9
analogous
#B99154 #AFB954 #7CB954
triadic
#AFB954 #54AFB9 #B954AF
tetradic
#AFB954 #54B991 #5E54B9 #B9547C
square
#AFB954 #54B991 #5E54B9 #B9547C
split-complementary
#AFB954 #547CB9 #9154B9
monochromatic
#62682B #8B933C #AFB954 #C3CB7F #D8DDAB

Accessibility & contrast

On white

2.12
#AFB954 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#AFB954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB954
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB954#FFFFFF#000000##000000
##AFB9541.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B14A
Deuteranopia (green-blind)
#C4B35A
Tritanopia (blue-blind)
#B9AFA3
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb954;
/* rgb */ color: rgb(175, 185, 84);
/* oklch */ color: oklch(75.7% 0.126 114.1);
Tailwind
colors: {
  custom: {
    50: '#c9cd87',
    500: '#afb954',
    950: '#000000',
  },
}
SCSS
$custom: #afb954;
$custom-light: #c9cd87;
$custom-dark: #000000;
JSON
{
  "hex": "#afb954",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 84
  },
  "hsl": {
    "h": 65.941,
    "s": 41.909,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75704,
    "c": 0.1261,
    "h": 114.1
  },
  "luminance": 0.44452
}

Semantic roles & 50–950 ramp

primary
#AFB954
secondary
#A39FCA
accent
#56D262
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB954

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

Preview Lab → · Contrast checker → · Palette generator →

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