#AFAF45#AFAF45

#AFAF45 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.3% C 0.128 H 109.2°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#AFAF45
RGBrgb(175, 175, 69)
HSLhsl(60, 43%, 48%)
HSVhsv(60, 61%, 69%)
CMYKcmyk(0%, 0%, 60.6%, 31.4%)
CIE-LABlab(69.61, -13.80, 52.82)
CIE-LCHlch(69.61, 54.59, 104.64°)
OKLaboklab(73.33% -0.042 0.1208)
OKLCHoklch(73.33% 0.128 109.2)
XYZxyz(34.0844, 40.2045, 11.5939)
Luminance0.4020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF45 #4545AF
analogous
#AF7A45 #AFAF45 #7AAF45
triadic
#AFAF45 #45AFAF #AF45AF
tetradic
#AFAF45 #45AF7A #4545AF #AF457A
square
#AFAF45 #45AF7A #4545AF #AF457A
split-complementary
#AFAF45 #457AAF #7A45AF
monochromatic
#575722 #838334 #AFAF45 #C5C56C #D6D698

Accessibility & contrast

On white

2.32
#AFAF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#AFAF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF45
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF45#FFFFFF#000000##000000
##AFAF451.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA839
Deuteranopia (green-blind)
#BEAC4B
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf45;
/* rgb */ color: rgb(175, 175, 69);
/* oklch */ color: oklch(73.3% 0.128 109.2);
Tailwind
colors: {
  custom: {
    50: '#c9c67d',
    500: '#afaf45',
    950: '#000000',
  },
}
SCSS
$custom: #afaf45;
$custom-light: #c9c67d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf45",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 69
  },
  "hsl": {
    "h": 60,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.73329,
    "c": 0.12794,
    "h": 109.2
  },
  "luminance": 0.40204
}

Semantic roles & 50–950 ramp

primary
#AFAF45
secondary
#8D8DC2
accent
#55D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFAF45

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

Preview Lab → · Contrast checker → · Palette generator →

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