#AFA62C#AFA62C

#AFA62C is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.137 H 105.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA62C
RGBrgb(175, 166, 44)
HSLhsl(56, 60%, 43%)
HSVhsv(56, 75%, 69%)
CMYKcmyk(0%, 5.1%, 74.9%, 31.4%)
CIE-LABlab(66.95, -10.55, 60.07)
CIE-LCHlch(66.95, 60.99, 99.96°)
OKLaboklab(71.15% -0.0355 0.132)
OKLCHoklch(71.15% 0.137 105)
XYZxyz(31.7714, 36.5695, 7.7674)
Luminance0.3657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA62C #2C35AF
analogous
#AF642C #AFA62C #76AF2C
triadic
#AFA62C #2CAFA6 #A62CAF
tetradic
#AFA62C #2CAF64 #2C35AF #AF2C76
square
#AFA62C #2CAF64 #2C35AF #AF2C76
split-complementary
#AFA62C #2C76AF #642CAF
monochromatic
#4D4913 #7E7820 #AFA62C #D1C747 #DDD678

Accessibility & contrast

On white

2.53
#AFA62C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA62C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA62C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA62C#FFFFFF#000000##000000
##AFA62C1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A013
Deuteranopia (green-blind)
#B8A535
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa62c;
/* rgb */ color: rgb(175, 166, 44);
/* oklch */ color: oklch(71.2% 0.137 105.0);
Tailwind
colors: {
  custom: {
    50: '#cbc06f',
    500: '#afa62c',
    950: '#000000',
  },
}
SCSS
$custom: #afa62c;
$custom-light: #cbc06f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa62c",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 44
  },
  "hsl": {
    "h": 55.878,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7115,
    "c": 0.1367,
    "h": 105
  },
  "luminance": 0.36568
}

Semantic roles & 50–950 ramp

primary
#AFA62C
secondary
#7277C5
accent
#50E345
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA62C

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

Preview Lab → · Contrast checker → · Palette generator →

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