#AFB82E#AFB82E

#AFB82E is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.1% C 0.153 H 113.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFB82E
RGBrgb(175, 184, 46)
HSLhsl(64, 60%, 45%)
HSVhsv(64, 75%, 72%)
CMYKcmyk(4.9%, 0%, 75%, 27.8%)
CIE-LABlab(71.96, -19.67, 64.08)
CIE-LCHlch(71.96, 67.03, 107.06°)
OKLaboklab(75.15% -0.0608 0.1409)
OKLCHoklch(75.15% 0.153 113.3)
XYZxyz(35.3139, 43.5930, 9.1383)
Luminance0.4359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82E #372EB8
analogous
#B87C2E #AFB82E #6AB82E
triadic
#AFB82E #2EAFB8 #B82EAF
tetradic
#AFB82E #2EB87C #372EB8 #B82E6A
square
#AFB82E #2EB87C #372EB8 #B82E6A
split-complementary
#AFB82E #2E6AB8 #7C2EB8
monochromatic
#525616 #808722 #AFB82E #CBD350 #D9DF81

Accessibility & contrast

On white

2.16
#AFB82E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#AFB82E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB82E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB82E#FFFFFF#000000##000000
##AFB82E1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF0D
Deuteranopia (green-blind)
#C6B23A
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb82e;
/* rgb */ color: rgb(175, 184, 46);
/* oklch */ color: oklch(75.1% 0.153 113.3);
Tailwind
colors: {
  custom: {
    50: '#cacd72',
    500: '#afb82e',
    950: '#000000',
  },
}
SCSS
$custom: #afb82e;
$custom-light: #cacd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82e",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 46
  },
  "hsl": {
    "h": 63.913,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.7515,
    "c": 0.15343,
    "h": 113.3
  },
  "luminance": 0.43592
}

Semantic roles & 50–950 ramp

primary
#AFB82E
secondary
#7F79C8
accent
#45E34F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB82E

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

Preview Lab → · Contrast checker → · Palette generator →

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