#AFBE2D#AFBE2D

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

Color values

HEX#AFBE2D
RGBrgb(175, 190, 45)
HSLhsl(66, 62%, 46%)
HSVhsv(66, 76%, 75%)
CMYKcmyk(7.9%, 0%, 76.3%, 25.5%)
CIE-LABlab(73.63, -22.68, 65.95)
CIE-LCHlch(73.63, 69.75, 108.98°)
OKLaboklab(76.49% -0.0692 0.1447)
OKLCHoklch(76.49% 0.16 115.6)
XYZxyz(36.5673, 46.1309, 9.4599)
Luminance0.4613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE2D #3C2DBE
analogous
#BE842D #AFBE2D #66BE2D
triadic
#AFBE2D #2DAFBE #BE2DAF
tetradic
#AFBE2D #2DBE84 #3C2DBE #BE2D66
square
#AFBE2D #2DBE84 #3C2DBE #BE2D66
split-complementary
#AFBE2D #2D66BE #842DBE
monochromatic
#545B16 #818D21 #AFBE2D #C8D652 #D8E284

Accessibility & contrast

On white

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

On black

10.23
#AFBE2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE2D
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE2D#FFFFFF#000000##000000
##AFBE2D1.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afbe2d;
/* rgb */ color: rgb(175, 190, 45);
/* oklch */ color: oklch(76.5% 0.160 115.6);
Tailwind
colors: {
  custom: {
    50: '#cbd172',
    500: '#afbe2d',
    950: '#000000',
  },
}
SCSS
$custom: #afbe2d;
$custom-light: #cbd172;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe2d",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 45
  },
  "hsl": {
    "h": 66.207,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76491,
    "c": 0.16037,
    "h": 115.6
  },
  "luminance": 0.4613
}

Semantic roles & 50–950 ramp

primary
#AFBE2D
secondary
#847CCB
accent
#43E554
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBE2D

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

Preview Lab → · Contrast checker → · Palette generator →

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