#AFBF2A#AFBF2A

#AFBF2A is a light, vivid yellow. Relative luminance 0.465; OKLCH L 76.7% C 0.163 H 115.9°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#AFBF2A
RGBrgb(175, 191, 42)
HSLhsl(66, 64%, 46%)
HSVhsv(66, 78%, 75%)
CMYKcmyk(8.4%, 0%, 78%, 25.1%)
CIE-LABlab(73.90, -23.30, 67.11)
CIE-LCHlch(73.90, 71.04, 109.14°)
OKLaboklab(76.7% -0.0711 0.1466)
OKLCHoklch(76.7% 0.163 115.9)
XYZxyz(36.7289, 46.5433, 9.2390)
Luminance0.4654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF2A #3A2ABF
analogous
#BF842A #AFBF2A #64BF2A
triadic
#AFBF2A #2AAFBF #BF2AAF
tetradic
#AFBF2A #2ABF84 #3A2ABF #BF2A64
square
#AFBF2A #2ABF84 #3A2ABF #BF2A64
split-complementary
#AFBF2A #2A64BF #842ABF
monochromatic
#535B14 #818D1F #AFBF2A #C9D84E #D9E380

Accessibility & contrast

On white

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

On black

10.31
#AFBF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF2A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF2A#FFFFFF#000000##000000
##AFBF2A1.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB500
Deuteranopia (green-blind)
#CCB738
Tritanopia (blue-blind)
#BBB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf2a;
/* rgb */ color: rgb(175, 191, 42);
/* oklch */ color: oklch(76.7% 0.163 115.9);
Tailwind
colors: {
  custom: {
    50: '#cbd271',
    500: '#afbf2a',
    950: '#000000',
  },
}
SCSS
$custom: #afbf2a;
$custom-light: #cbd271;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf2a",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 42
  },
  "hsl": {
    "h": 66.443,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.76701,
    "c": 0.16295,
    "h": 115.9
  },
  "luminance": 0.46543
}

Semantic roles & 50–950 ramp

primary
#AFBF2A
secondary
#8279CC
accent
#41E753
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFBF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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