#AFAA42#AFAA42

#AFAA42 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.2% C 0.125 H 106.5°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AFAA42
RGBrgb(175, 170, 66)
HSLhsl(57, 45%, 47%)
HSVhsv(57, 62%, 69%)
CMYKcmyk(0%, 2.9%, 62.3%, 31.4%)
CIE-LABlab(68.21, -11.42, 52.62)
CIE-LCHlch(68.21, 53.84, 102.24°)
OKLaboklab(72.2% -0.0356 0.12)
OKLCHoklch(72.2% 0.125 106.5)
XYZxyz(33.0384, 38.2578, 10.7974)
Luminance0.3826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA42 #4247AF
analogous
#AF7442 #AFAA42 #7DAF42
triadic
#AFAA42 #42AFAA #AA42AF
tetradic
#AFAA42 #42AF74 #4247AF #AF427D
square
#AFAA42 #42AF74 #4247AF #AF427D
split-complementary
#AFAA42 #427DAF #7442AF
monochromatic
#565420 #837F31 #AFAA42 #C6C268 #D7D495

Accessibility & contrast

On white

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

On black

8.65
#AFAA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA42
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA42#FFFFFF#000000##000000
##AFAA421.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A436
Deuteranopia (green-blind)
#BAA848
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa42;
/* rgb */ color: rgb(175, 170, 66);
/* oklch */ color: oklch(72.2% 0.125 106.5);
Tailwind
colors: {
  custom: {
    50: '#cac37b',
    500: '#afaa42',
    950: '#000000',
  },
}
SCSS
$custom: #afaa42;
$custom-light: #cac37b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa42",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 66
  },
  "hsl": {
    "h": 57.248,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.72201,
    "c": 0.12516,
    "h": 106.5
  },
  "luminance": 0.38257
}

Semantic roles & 50–950 ramp

primary
#AFAA42
secondary
#8A8DC2
accent
#59D553
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAA42

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

Preview Lab → · Contrast checker → · Palette generator →

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