#AFBF58#AFBF58

#AFBF58 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.1% C 0.130 H 116.9°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#AFBF58
RGBrgb(175, 191, 88)
HSLhsl(69, 45%, 55%)
HSVhsv(69, 54%, 75%)
CMYKcmyk(8.4%, 0%, 53.9%, 25.1%)
CIE-LABlab(74.24, -20.40, 49.37)
CIE-LCHlch(74.24, 53.41, 112.45°)
OKLaboklab(77.09% -0.0587 0.1157)
OKLCHoklch(77.09% 0.13 116.9)
XYZxyz(38.0720, 47.0805, 16.3124)
Luminance0.4708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF58 #6858BF
analogous
#BF9B58 #AFBF58 #7CBF58
triadic
#AFBF58 #58AFBF #BF58AF
tetradic
#AFBF58 #58BF9B #6858BF #BF587C
square
#AFBF58 #58BF9B #6858BF #BF587C
split-complementary
#AFBF58 #587CBF #9B58BF
monochromatic
#66712B #8E9D3C #AFBF58 #C4D084 #D9E1B0

Accessibility & contrast

On white

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

On black

10.42
#AFBF58 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF58
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF58#FFFFFF#000000##000000
##AFBF581.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB64E
Deuteranopia (green-blind)
#C9B75E
Tritanopia (blue-blind)
#B8B6A8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf58;
/* rgb */ color: rgb(175, 191, 88);
/* oklch */ color: oklch(77.1% 0.130 116.9);
Tailwind
colors: {
  custom: {
    50: '#c9d28a',
    500: '#afbf58',
    950: '#000000',
  },
}
SCSS
$custom: #afbf58;
$custom-light: #c9d28a;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf58",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 88
  },
  "hsl": {
    "h": 69.32,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.77088,
    "c": 0.12974,
    "h": 116.9
  },
  "luminance": 0.4708
}

Semantic roles & 50–950 ramp

primary
#AFBF58
secondary
#AAA4CF
accent
#54D468
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF58

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

Preview Lab → · Contrast checker → · Palette generator →

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