#AFA62A#AFA62A

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

Color values

HEX#AFA62A
RGBrgb(175, 166, 42)
HSLhsl(56, 61%, 43%)
HSVhsv(56, 76%, 69%)
CMYKcmyk(0%, 5.1%, 76%, 31.4%)
CIE-LABlab(66.94, -10.64, 60.75)
CIE-LCHlch(66.94, 61.67, 99.93°)
OKLaboklab(71.14% -0.0359 0.1331)
OKLCHoklch(71.14% 0.138 105.1)
XYZxyz(31.7347, 36.5548, 7.5742)
Luminance0.3655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA62A #2A33AF
analogous
#AF642A #AFA62A #75AF2A
triadic
#AFA62A #2AAFA6 #A62AAF
tetradic
#AFA62A #2AAF64 #2A33AF #AF2A75
square
#AFA62A #2AAF64 #2A33AF #AF2A75
split-complementary
#AFA62A #2A75AF #642AAF
monochromatic
#4C4812 #7E771E #AFA62A #D2C944 #DED775

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA62A#FFFFFF#000000##000000
##AFA62A1.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)
#B5A00E
Deuteranopia (green-blind)
#B8A534
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa62a;
/* rgb */ color: rgb(175, 166, 42);
/* oklch */ color: oklch(71.1% 0.138 105.1);
Tailwind
colors: {
  custom: {
    50: '#cbc06e',
    500: '#afa62a',
    950: '#000000',
  },
}
SCSS
$custom: #afa62a;
$custom-light: #cbc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa62a",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 42
  },
  "hsl": {
    "h": 55.94,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71137,
    "c": 0.13783,
    "h": 105.1
  },
  "luminance": 0.36554
}

Semantic roles & 50–950 ramp

primary
#AFA62A
secondary
#6F75C6
accent
#4EE443
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA62A

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

Preview Lab → · Contrast checker → · Palette generator →

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