#AFB54D#AFB54D

#AFB54D is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.128 H 112.2°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#AFB54D
RGBrgb(175, 181, 77)
HSLhsl(63, 41%, 51%)
HSVhsv(63, 57%, 71%)
CMYKcmyk(3.3%, 0%, 57.5%, 29%)
CIE-LABlab(71.35, -16.28, 51.15)
CIE-LCHlch(71.35, 53.68, 107.66°)
OKLaboklab(74.74% -0.0482 0.1183)
OKLCHoklch(74.74% 0.128 112.2)
XYZxyz(35.5435, 42.6983, 13.3890)
Luminance0.4270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB54D #534DB5
analogous
#B5874D #AFB54D #7BB54D
triadic
#AFB54D #4DAFB5 #B54DAF
tetradic
#AFB54D #4DB587 #534DB5 #B54D7B
square
#AFB54D #4DB587 #534DB5 #B54D7B
split-complementary
#AFB54D #4D7BB5 #874DB5
monochromatic
#5D6028 #868B3A #AFB54D #C2C778 #D6D9A3

Accessibility & contrast

On white

2.20
#AFB54D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#AFB54D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB54D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB54D#FFFFFF#000000##000000
##AFB54D1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD42
Deuteranopia (green-blind)
#C2B053
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb54d;
/* rgb */ color: rgb(175, 181, 77);
/* oklch */ color: oklch(74.7% 0.128 112.2);
Tailwind
colors: {
  custom: {
    50: '#c9cb83',
    500: '#afb54d',
    950: '#000000',
  },
}
SCSS
$custom: #afb54d;
$custom-light: #c9cb83;
$custom-dark: #000000;
JSON
{
  "hex": "#afb54d",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 77
  },
  "hsl": {
    "h": 63.462,
    "s": 41.27,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74738,
    "c": 0.12776,
    "h": 112.2
  },
  "luminance": 0.42698
}

Semantic roles & 50–950 ramp

primary
#AFB54D
secondary
#9A98C6
accent
#57D15E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB54D

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

Preview Lab → · Contrast checker → · Palette generator →

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