#AFA82F#AFA82F

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

Color values

HEX#AFA82F
RGBrgb(175, 168, 47)
HSLhsl(57, 58%, 44%)
HSVhsv(57, 73%, 69%)
CMYKcmyk(0%, 4%, 73.1%, 31.4%)
CIE-LABlab(67.52, -11.46, 59.55)
CIE-LCHlch(67.52, 60.64, 100.89°)
OKLaboklab(71.61% -0.0377 0.1315)
OKLCHoklch(71.61% 0.137 106)
XYZxyz(32.1962, 37.3256, 8.1974)
Luminance0.3732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA82F #2F36AF
analogous
#AF682F #AFA82F #76AF2F
triadic
#AFA82F #2FAFA8 #A82FAF
tetradic
#AFA82F #2FAF68 #2F36AF #AF2F76
square
#AFA82F #2FAF68 #2F36AF #AF2F76
split-complementary
#AFA82F #2F76AF #682FAF
monochromatic
#4F4B15 #7F7A22 #AFA82F #CFC84C #DCD77C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA82F#FFFFFF#000000##000000
##AFA82F1.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)
#B7A218
Deuteranopia (green-blind)
#B9A738
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa82f;
/* rgb */ color: rgb(175, 168, 47);
/* oklch */ color: oklch(71.6% 0.137 106.0);
Tailwind
colors: {
  custom: {
    50: '#cac170',
    500: '#afa82f',
    950: '#000000',
  },
}
SCSS
$custom: #afa82f;
$custom-light: #cac170;
$custom-dark: #000000;
JSON
{
  "hex": "#afa82f",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 47
  },
  "hsl": {
    "h": 56.719,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71608,
    "c": 0.13677,
    "h": 106
  },
  "luminance": 0.37324
}

Semantic roles & 50–950 ramp

primary
#AFA82F
secondary
#757AC4
accent
#4FE147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA82F

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

Preview Lab → · Contrast checker → · Palette generator →

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