#AFBF31#AFBF31

#AFBF31 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.7% C 0.159 H 116.0°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#AFBF31
RGBrgb(175, 191, 49)
HSLhsl(67, 59%, 47%)
HSVhsv(67, 74%, 75%)
CMYKcmyk(8.4%, 0%, 74.3%, 25.1%)
CIE-LABlab(73.93, -23.00, 64.95)
CIE-LCHlch(73.93, 68.90, 109.50°)
OKLaboklab(76.74% -0.0698 0.1432)
OKLCHoklch(76.74% 0.159 116)
XYZxyz(36.8654, 46.5979, 9.9574)
Luminance0.4660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF31 #4131BF
analogous
#BF8831 #AFBF31 #68BF31
triadic
#AFBF31 #31AFBF #BF31AF
tetradic
#AFBF31 #31BF88 #4131BF #BF3168
square
#AFBF31 #31BF88 #4131BF #BF3168
split-complementary
#AFBF31 #3168BF #8831BF
monochromatic
#565E18 #828E25 #AFBF31 #C6D459 #D7E18A

Accessibility & contrast

On white

2.04
#AFBF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.32
#AFBF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF31
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF31#FFFFFF#000000##000000
##AFBF311.002.0410.3210.32
#FFFFFF2.041.0021.0021.00
#00000010.3221.001.001.00
##00000010.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB511
Deuteranopia (green-blind)
#CBB73D
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf31;
/* rgb */ color: rgb(175, 191, 49);
/* oklch */ color: oklch(76.7% 0.159 116.0);
Tailwind
colors: {
  custom: {
    50: '#cad274',
    500: '#afbf31',
    950: '#000000',
  },
}
SCSS
$custom: #afbf31;
$custom-light: #cad274;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf31",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 49
  },
  "hsl": {
    "h": 66.761,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.7674,
    "c": 0.15932,
    "h": 116
  },
  "luminance": 0.46597
}

Semantic roles & 50–950 ramp

primary
#AFBF31
secondary
#8981CB
accent
#45E257
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF31

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

Preview Lab → · Contrast checker → · Palette generator →

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