#AFAA45#AFAA45

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

Color values

HEX#AFAA45
RGBrgb(175, 170, 69)
HSLhsl(57, 43%, 48%)
HSVhsv(57, 61%, 69%)
CMYKcmyk(0%, 2.9%, 60.6%, 31.4%)
CIE-LABlab(68.24, -11.21, 51.32)
CIE-LCHlch(68.24, 52.53, 102.32°)
OKLaboklab(72.23% -0.0347 0.1177)
OKLCHoklch(72.23% 0.123 106.4)
XYZxyz(33.1292, 38.2941, 11.2755)
Luminance0.3829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA45 #454AAF
analogous
#AF7545 #AFAA45 #7FAF45
triadic
#AFAA45 #45AFAA #AA45AF
tetradic
#AFAA45 #45AF75 #454AAF #AF457F
square
#AFAA45 #45AF75 #454AAF #AF457F
split-complementary
#AFAA45 #457FAF #7545AF
monochromatic
#575522 #837F34 #AFAA45 #C5C16C #D6D398

Accessibility & contrast

On white

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

On black

8.66
#AFAA45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA45
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA45#FFFFFF#000000##000000
##AFAA451.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A439
Deuteranopia (green-blind)
#BAA84B
Tritanopia (blue-blind)
#BBA094
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa45;
/* rgb */ color: rgb(175, 170, 69);
/* oklch */ color: oklch(72.2% 0.123 106.4);
Tailwind
colors: {
  custom: {
    50: '#c9c37d',
    500: '#afaa45',
    950: '#000000',
  },
}
SCSS
$custom: #afaa45;
$custom-light: #c9c37d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa45",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 69
  },
  "hsl": {
    "h": 57.17,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72231,
    "c": 0.12267,
    "h": 106.4
  },
  "luminance": 0.38293
}

Semantic roles & 50–950 ramp

primary
#AFAA45
secondary
#8D90C2
accent
#5BD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAA45

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

Preview Lab → · Contrast checker → · Palette generator →

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