#AFAA3A#AFAA3A

#AFAA3A is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.1% C 0.131 H 106.8°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AFAA3A
RGBrgb(175, 170, 58)
HSLhsl(57, 50%, 46%)
HSVhsv(57, 67%, 69%)
CMYKcmyk(0%, 2.9%, 66.9%, 31.4%)
CIE-LABlab(68.15, -11.92, 55.94)
CIE-LCHlch(68.15, 57.19, 102.03°)
OKLaboklab(72.13% -0.0379 0.1258)
OKLCHoklch(72.13% 0.131 106.8)
XYZxyz(32.8188, 38.1700, 9.6410)
Luminance0.3817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA3A #3A3FAF
analogous
#AF6F3A #AFAA3A #79AF3A
triadic
#AFAA3A #3AAFAA #AA3AAF
tetradic
#AFAA3A #3AAF6F #3A3FAF #AF3A79
square
#AFAA3A #3AAF6F #3A3FAF #AF3A79
split-complementary
#AFAA3A #3A79AF #6F3AAF
monochromatic
#53511C #817D2B #AFAA3A #C9C55D #D9D58B

Accessibility & contrast

On white

2.43
#AFAA3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AFAA3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA3A
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA3A#FFFFFF#000000##000000
##AFAA3A1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A42A
Deuteranopia (green-blind)
#BAA841
Tritanopia (blue-blind)
#BB9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa3a;
/* rgb */ color: rgb(175, 170, 58);
/* oklch */ color: oklch(72.1% 0.131 106.8);
Tailwind
colors: {
  custom: {
    50: '#cac376',
    500: '#afaa3a',
    950: '#000000',
  },
}
SCSS
$custom: #afaa3a;
$custom-light: #cac376;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa3a",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 58
  },
  "hsl": {
    "h": 57.436,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72129,
    "c": 0.13135,
    "h": 106.8
  },
  "luminance": 0.38169
}

Semantic roles & 50–950 ramp

primary
#AFAA3A
secondary
#8285C3
accent
#54DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA3A

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

Preview Lab → · Contrast checker → · Palette generator →

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