#AFB82F#AFB82F

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

Color values

HEX#AFB82F
RGBrgb(175, 184, 47)
HSLhsl(64, 59%, 45%)
HSVhsv(64, 74%, 72%)
CMYKcmyk(4.9%, 0%, 74.5%, 27.8%)
CIE-LABlab(71.96, -19.62, 63.76)
CIE-LCHlch(71.96, 66.71, 107.11°)
OKLaboklab(75.16% -0.0606 0.1404)
OKLCHoklch(75.16% 0.153 113.3)
XYZxyz(35.3339, 43.6009, 9.2433)
Luminance0.4360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82F #382FB8
analogous
#B87D2F #AFB82F #6AB82F
triadic
#AFB82F #2FAFB8 #B82FAF
tetradic
#AFB82F #2FB87D #382FB8 #B82F6A
square
#AFB82F #2FB87D #382FB8 #B82F6A
split-complementary
#AFB82F #2F6AB8 #7D2FB8
monochromatic
#525716 #818723 #AFB82F #CAD352 #D9DF82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB82F#FFFFFF#000000##000000
##AFB82F1.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)
#C6AF10
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb82f;
/* rgb */ color: rgb(175, 184, 47);
/* oklch */ color: oklch(75.2% 0.153 113.3);
Tailwind
colors: {
  custom: {
    50: '#cacd72',
    500: '#afb82f',
    950: '#000000',
  },
}
SCSS
$custom: #afb82f;
$custom-light: #cacd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82f",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 47
  },
  "hsl": {
    "h": 63.942,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75156,
    "c": 0.15288,
    "h": 113.3
  },
  "luminance": 0.436
}

Semantic roles & 50–950 ramp

primary
#AFB82F
secondary
#807BC8
accent
#45E250
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB82F

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

Preview Lab → · Contrast checker → · Palette generator →

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