#AFB82C#AFB82C

#AFB82C 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#AFB82C
RGBrgb(175, 184, 44)
HSLhsl(64, 61%, 45%)
HSVhsv(64, 76%, 72%)
CMYKcmyk(4.9%, 0%, 76.1%, 27.8%)
CIE-LABlab(71.95, -19.75, 64.72)
CIE-LCHlch(71.95, 67.67, 106.97°)
OKLaboklab(75.14% -0.0612 0.1419)
OKLCHoklch(75.14% 0.155 113.3)
XYZxyz(35.2754, 43.5776, 8.9355)
Luminance0.4358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82C #352CB8
analogous
#B87B2C #AFB82C #69B82C
triadic
#AFB82C #2CAFB8 #B82CAF
tetradic
#AFB82C #2CB87B #352CB8 #B82C69
square
#AFB82C #2CB87B #352CB8 #B82C69
split-complementary
#AFB82C #2C69B8 #7B2CB8
monochromatic
#515514 #808720 #AFB82C #CCD44D #DAE07E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB82C#FFFFFF#000000##000000
##AFB82C1.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)
#C6AF06
Deuteranopia (green-blind)
#C6B238
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb82c;
/* rgb */ color: rgb(175, 184, 44);
/* oklch */ color: oklch(75.1% 0.154 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd71',
    500: '#afb82c',
    950: '#000000',
  },
}
SCSS
$custom: #afb82c;
$custom-light: #cbcd71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82c",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 44
  },
  "hsl": {
    "h": 63.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75138,
    "c": 0.1545,
    "h": 113.3
  },
  "luminance": 0.43577
}

Semantic roles & 50–950 ramp

primary
#AFB82C
secondary
#7C77C9
accent
#43E54E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB82C

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

Preview Lab → · Contrast checker → · Palette generator →

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