#AFAA2D#AFAA2D

#AFAA2D is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.0% C 0.140 H 107.1°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#AFAA2D
RGBrgb(175, 170, 45)
HSLhsl(58, 59%, 43%)
HSVhsv(58, 74%, 69%)
CMYKcmyk(0%, 2.9%, 74.3%, 31.4%)
CIE-LABlab(68.06, -12.59, 60.77)
CIE-LCHlch(68.06, 62.06, 101.70°)
OKLaboklab(72.03% -0.0411 0.1337)
OKLCHoklch(72.03% 0.14 107.1)
XYZxyz(32.5289, 38.0540, 8.1138)
Luminance0.3805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA2D #2D32AF
analogous
#AF692D #AFAA2D #73AF2D
triadic
#AFAA2D #2DAFAA #AA2DAF
tetradic
#AFAA2D #2DAF69 #2D32AF #AF2D73
square
#AFAA2D #2DAF69 #2D32AF #AF2D73
split-complementary
#AFAA2D #2D73AF #692DAF
monochromatic
#4E4B14 #7E7B20 #AFAA2D #D0CB49 #DDD97A

Accessibility & contrast

On white

2.44
#AFAA2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#AFAA2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA2D
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA2D#FFFFFF#000000##000000
##AFAA2D1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A313
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa2d;
/* rgb */ color: rgb(175, 170, 45);
/* oklch */ color: oklch(72.0% 0.140 107.1);
Tailwind
colors: {
  custom: {
    50: '#cac370',
    500: '#afaa2d',
    950: '#000000',
  },
}
SCSS
$custom: #afaa2d;
$custom-light: #cac370;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa2d",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 45
  },
  "hsl": {
    "h": 57.692,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.72034,
    "c": 0.13986,
    "h": 107.1
  },
  "luminance": 0.38053
}

Semantic roles & 50–950 ramp

primary
#AFAA2D
secondary
#7376C5
accent
#4CE246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA2D

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

Preview Lab → · Contrast checker → · Palette generator →

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