#AFB82D#AFB82D

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

Color values

HEX#AFB82D
RGBrgb(175, 184, 45)
HSLhsl(64, 61%, 45%)
HSVhsv(64, 76%, 72%)
CMYKcmyk(4.9%, 0%, 75.5%, 27.8%)
CIE-LABlab(71.95, -19.71, 64.40)
CIE-LCHlch(71.95, 67.35, 107.02°)
OKLaboklab(75.14% -0.061 0.1414)
OKLCHoklch(75.14% 0.154 113.3)
XYZxyz(35.2944, 43.5852, 9.0357)
Luminance0.4358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82D #362DB8
analogous
#B87C2D #AFB82D #69B82D
triadic
#AFB82D #2DAFB8 #B82DAF
tetradic
#AFB82D #2DB87C #362DB8 #B82D69
square
#AFB82D #2DB87C #362DB8 #B82D69
split-complementary
#AFB82D #2D69B8 #7C2DB8
monochromatic
#515615 #808721 #AFB82D #CBD44E #DAE080

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB82D#FFFFFF#000000##000000
##AFB82D1.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)
#C6AF09
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb82d;
/* rgb */ color: rgb(175, 184, 45);
/* oklch */ color: oklch(75.1% 0.154 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd71',
    500: '#afb82d',
    950: '#000000',
  },
}
SCSS
$custom: #afb82d;
$custom-light: #cbcd71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82d",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 45
  },
  "hsl": {
    "h": 63.885,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75144,
    "c": 0.15397,
    "h": 113.3
  },
  "luminance": 0.43584
}

Semantic roles & 50–950 ramp

primary
#AFB82D
secondary
#7D78C9
accent
#44E44E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB82D

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

Preview Lab → · Contrast checker → · Palette generator →

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