#AFB82B#AFB82B

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

Color values

HEX#AFB82B
RGBrgb(175, 184, 43)
HSLhsl(64, 62%, 45%)
HSVhsv(64, 77%, 72%)
CMYKcmyk(4.9%, 0%, 76.6%, 27.8%)
CIE-LABlab(71.94, -19.80, 65.03)
CIE-LCHlch(71.94, 67.97, 106.93°)
OKLaboklab(75.13% -0.0614 0.1424)
OKLCHoklch(75.13% 0.155 113.3)
XYZxyz(35.2569, 43.5701, 8.8376)
Luminance0.4357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82B #342BB8
analogous
#B87B2B #AFB82B #68B82B
triadic
#AFB82B #2BAFB8 #B82BAF
tetradic
#AFB82B #2BB87B #342BB8 #B82B68
square
#AFB82B #2BB87B #342BB8 #B82B68
split-complementary
#AFB82B #2B68B8 #7B2BB8
monochromatic
#515514 #80861F #AFB82B #CCD54B #DAE17D

Accessibility & contrast

On white

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

On black

9.71
#AFB82B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB82B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB82B#FFFFFF#000000##000000
##AFB82B1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb82b;
/* rgb */ color: rgb(175, 184, 43);
/* oklch */ color: oklch(75.1% 0.155 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd70',
    500: '#afb82b',
    950: '#000000',
  },
}
SCSS
$custom: #afb82b;
$custom-light: #cbcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82b",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 43
  },
  "hsl": {
    "h": 63.83,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.75132,
    "c": 0.15502,
    "h": 113.3
  },
  "luminance": 0.43569
}

Semantic roles & 50–950 ramp

primary
#AFB82B
secondary
#7B76C9
accent
#43E54D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB82B

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

Preview Lab → · Contrast checker → · Palette generator →

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