#AFBF54#AFBF54

#AFBF54 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.0% C 0.133 H 116.7°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#AFBF54
RGBrgb(175, 191, 84)
HSLhsl(69, 46%, 54%)
HSVhsv(69, 56%, 75%)
CMYKcmyk(8.4%, 0%, 56%, 25.1%)
CIE-LABlab(74.20, -20.74, 51.17)
CIE-LCHlch(74.20, 55.21, 112.06°)
OKLaboklab(77.04% -0.06 0.1192)
OKLCHoklch(77.04% 0.133 116.7)
XYZxyz(37.9108, 47.0161, 15.4637)
Luminance0.4702 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF54 #6454BF
analogous
#BF9A54 #AFBF54 #7ABF54
triadic
#AFBF54 #54AFBF #BF54AF
tetradic
#AFBF54 #54BF9A #6454BF #BF547A
square
#AFBF54 #54BF9A #6454BF #BF547A
split-complementary
#AFBF54 #547ABF #9A54BF
monochromatic
#656F2A #8D9C3A #AFBF54 #C4D081 #D9E0AD

Accessibility & contrast

On white

2.02
#AFBF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#AFBF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF54
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF54#FFFFFF#000000##000000
##AFBF541.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB649
Deuteranopia (green-blind)
#C9B75A
Tritanopia (blue-blind)
#B9B5A8
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf54;
/* rgb */ color: rgb(175, 191, 84);
/* oklch */ color: oklch(77.0% 0.133 116.7);
Tailwind
colors: {
  custom: {
    50: '#c9d288',
    500: '#afbf54',
    950: '#000000',
  },
}
SCSS
$custom: #afbf54;
$custom-light: #c9d288;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf54",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 84
  },
  "hsl": {
    "h": 68.972,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77041,
    "c": 0.13345,
    "h": 116.7
  },
  "luminance": 0.47016
}

Semantic roles & 50–950 ramp

primary
#AFBF54
secondary
#A7A1CE
accent
#53D566
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF54

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

Preview Lab → · Contrast checker → · Palette generator →

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