#AFBE2E#AFBE2E

#AFBE2E 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#AFBE2E
RGBrgb(175, 190, 46)
HSLhsl(66, 61%, 46%)
HSVhsv(66, 76%, 75%)
CMYKcmyk(7.9%, 0%, 75.8%, 25.5%)
CIE-LABlab(73.64, -22.64, 65.64)
CIE-LCHlch(73.64, 69.44, 109.03°)
OKLaboklab(76.5% -0.069 0.1442)
OKLCHoklch(76.5% 0.16 115.6)
XYZxyz(36.5868, 46.1387, 9.5625)
Luminance0.4614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE2E #3D2EBE
analogous
#BE852E #AFBE2E #67BE2E
triadic
#AFBE2E #2EAFBE #BE2EAF
tetradic
#AFBE2E #2EBE85 #3D2EBE #BE2E67
square
#AFBE2E #2EBE85 #3D2EBE #BE2E67
split-complementary
#AFBE2E #2E67BE #852EBE
monochromatic
#545B16 #828D22 #AFBE2E #C8D654 #D8E185

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBE2E#FFFFFF#000000##000000
##AFBE2E1.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)
#CCB408
Deuteranopia (green-blind)
#CBB63B
Tritanopia (blue-blind)
#BAB3A3
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe2e;
/* rgb */ color: rgb(175, 190, 46);
/* oklch */ color: oklch(76.5% 0.160 115.6);
Tailwind
colors: {
  custom: {
    50: '#cbd172',
    500: '#afbe2e',
    950: '#000000',
  },
}
SCSS
$custom: #afbe2e;
$custom-light: #cbd172;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe2e",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 46
  },
  "hsl": {
    "h": 66.25,
    "s": 61.017,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76497,
    "c": 0.15985,
    "h": 115.6
  },
  "luminance": 0.46138
}

Semantic roles & 50–950 ramp

primary
#AFBE2E
secondary
#857DCB
accent
#44E454
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBE2E

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

Preview Lab → · Contrast checker → · Palette generator →

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