#AFBE2A#AFBE2A

#AFBE2A is a light, vivid yellow. Relative luminance 0.461; OKLCH L 76.5% C 0.162 H 115.5°. Best body text is #000000 at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#AFBE2A
RGBrgb(175, 190, 42)
HSLhsl(66, 64%, 45%)
HSVhsv(66, 78%, 75%)
CMYKcmyk(7.9%, 0%, 77.9%, 25.5%)
CIE-LABlab(73.62, -22.81, 66.86)
CIE-LCHlch(73.62, 70.64, 108.84°)
OKLaboklab(76.48% -0.0698 0.1461)
OKLCHoklch(76.48% 0.162 115.5)
XYZxyz(36.5116, 46.1086, 9.1665)
Luminance0.4611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE2A #392ABE
analogous
#BE832A #AFBE2A #65BE2A
triadic
#AFBE2A #2AAFBE #BE2AAF
tetradic
#AFBE2A #2ABE83 #392ABE #BE2A65
square
#AFBE2A #2ABE83 #392ABE #BE2A65
split-complementary
#AFBE2A #2A65BE #832ABE
monochromatic
#535A14 #818C1F #AFBE2A #CAD84D #D9E380

Accessibility & contrast

On white

2.05
#AFBE2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.22
#AFBE2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE2A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE2A#FFFFFF#000000##000000
##AFBE2A1.002.0510.2210.22
#FFFFFF2.051.0021.0021.00
#00000010.2221.001.001.00
##00000010.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB400
Deuteranopia (green-blind)
#CBB638
Tritanopia (blue-blind)
#BBB3A3
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe2a;
/* rgb */ color: rgb(175, 190, 42);
/* oklch */ color: oklch(76.5% 0.162 115.5);
Tailwind
colors: {
  custom: {
    50: '#cbd171',
    500: '#afbe2a',
    950: '#000000',
  },
}
SCSS
$custom: #afbe2a;
$custom-light: #cbd171;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe2a",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 42
  },
  "hsl": {
    "h": 66.081,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.76475,
    "c": 0.16187,
    "h": 115.5
  },
  "luminance": 0.46108
}

Semantic roles & 50–950 ramp

primary
#AFBE2A
secondary
#8178CB
accent
#41E752
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFBE2A

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

Preview Lab → · Contrast checker → · Palette generator →

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