#AFBF57#AFBF57

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

Color values

HEX#AFBF57
RGBrgb(175, 191, 87)
HSLhsl(69, 45%, 55%)
HSVhsv(69, 54%, 75%)
CMYKcmyk(8.4%, 0%, 54.5%, 25.1%)
CIE-LABlab(74.23, -20.48, 49.82)
CIE-LCHlch(74.23, 53.87, 112.35°)
OKLaboklab(77.08% -0.059 0.1166)
OKLCHoklch(77.08% 0.131 116.8)
XYZxyz(38.0309, 47.0641, 16.0958)
Luminance0.4706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF57 #6757BF
analogous
#BF9B57 #AFBF57 #7BBF57
triadic
#AFBF57 #57AFBF #BF57AF
tetradic
#AFBF57 #57BF9B #6757BF #BF577B
square
#AFBF57 #57BF9B #6757BF #BF577B
split-complementary
#AFBF57 #577BBF #9B57BF
monochromatic
#66712B #8E9D3C #AFBF57 #C4D083 #D9E1B0

Accessibility & contrast

On white

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

On black

10.41
#AFBF57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF57
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF57#FFFFFF#000000##000000
##AFBF571.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB64D
Deuteranopia (green-blind)
#C9B75D
Tritanopia (blue-blind)
#B8B6A8
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf57;
/* rgb */ color: rgb(175, 191, 87);
/* oklch */ color: oklch(77.1% 0.131 116.8);
Tailwind
colors: {
  custom: {
    50: '#c9d28a',
    500: '#afbf57',
    950: '#000000',
  },
}
SCSS
$custom: #afbf57;
$custom-light: #c9d28a;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf57",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 87
  },
  "hsl": {
    "h": 69.231,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77076,
    "c": 0.13069,
    "h": 116.8
  },
  "luminance": 0.47064
}

Semantic roles & 50–950 ramp

primary
#AFBF57
secondary
#AAA3CF
accent
#53D567
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF57

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

Preview Lab → · Contrast checker → · Palette generator →

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