#AFB82A#AFB82A

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

Color values

HEX#AFB82A
RGBrgb(175, 184, 42)
HSLhsl(64, 63%, 44%)
HSVhsv(64, 77%, 72%)
CMYKcmyk(4.9%, 0%, 77.2%, 27.8%)
CIE-LABlab(71.94, -19.84, 65.33)
CIE-LCHlch(71.94, 68.28, 106.89°)
OKLaboklab(75.13% -0.0616 0.1428)
OKLCHoklch(75.13% 0.156 113.3)
XYZxyz(35.2387, 43.5629, 8.7422)
Luminance0.4356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB82A #332AB8
analogous
#B87A2A #AFB82A #68B82A
triadic
#AFB82A #2AAFB8 #B82AAF
tetradic
#AFB82A #2AB87A #332AB8 #B82A68
square
#AFB82A #2AB87A #332AB8 #B82A68
split-complementary
#AFB82A #2A68B8 #7A2AB8
monochromatic
#505413 #80861F #AFB82A #CDD64A #DBE17B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB82A#FFFFFF#000000##000000
##AFB82A1.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)
#C6AF00
Deuteranopia (green-blind)
#C6B237
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb82a;
/* rgb */ color: rgb(175, 184, 42);
/* oklch */ color: oklch(75.1% 0.156 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd70',
    500: '#afb82a',
    950: '#000000',
  },
}
SCSS
$custom: #afb82a;
$custom-light: #cbcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb82a",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 42
  },
  "hsl": {
    "h": 63.803,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75127,
    "c": 0.15553,
    "h": 113.3
  },
  "luminance": 0.43562
}

Semantic roles & 50–950 ramp

primary
#AFB82A
secondary
#7A75C9
accent
#42E64C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB82A

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

Preview Lab → · Contrast checker → · Palette generator →

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