#AFA82C#AFA82C

#AFA82C is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.139 H 106.1°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#AFA82C
RGBrgb(175, 168, 44)
HSLhsl(57, 60%, 43%)
HSVhsv(57, 75%, 69%)
CMYKcmyk(0%, 4%, 74.9%, 31.4%)
CIE-LABlab(67.50, -11.59, 60.59)
CIE-LCHlch(67.50, 61.69, 100.83°)
OKLaboklab(71.59% -0.0384 0.1331)
OKLCHoklch(71.59% 0.139 106.1)
XYZxyz(32.1378, 37.3023, 7.8896)
Luminance0.3730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA82C #2C33AF
analogous
#AF662C #AFA82C #74AF2C
triadic
#AFA82C #2CAFA8 #A82CAF
tetradic
#AFA82C #2CAF66 #2C33AF #AF2C74
square
#AFA82C #2CAF66 #2C33AF #AF2C74
split-complementary
#AFA82C #2C74AF #662CAF
monochromatic
#4D4A13 #7E7920 #AFA82C #D1C947 #DDD878

Accessibility & contrast

On white

2.48
#AFA82C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#AFA82C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA82C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA82C#FFFFFF#000000##000000
##AFA82C1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A212
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa82c;
/* rgb */ color: rgb(175, 168, 44);
/* oklch */ color: oklch(71.6% 0.139 106.1);
Tailwind
colors: {
  custom: {
    50: '#cbc16f',
    500: '#afa82c',
    950: '#000000',
  },
}
SCSS
$custom: #afa82c;
$custom-light: #cbc16f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa82c",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 44
  },
  "hsl": {
    "h": 56.794,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71588,
    "c": 0.13854,
    "h": 106.1
  },
  "luminance": 0.37301
}

Semantic roles & 50–950 ramp

primary
#AFA82C
secondary
#7276C5
accent
#4DE345
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA82C

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

Preview Lab → · Contrast checker → · Palette generator →

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