#AFAE30#AFAE30

#AFAE30 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.9% C 0.142 H 109.0°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#AFAE30
RGBrgb(175, 174, 48)
HSLhsl(60, 57%, 44%)
HSVhsv(60, 73%, 69%)
CMYKcmyk(0%, 0.6%, 72.6%, 31.4%)
CIE-LABlab(69.18, -14.51, 60.78)
CIE-LCHlch(69.18, 62.49, 103.43°)
OKLaboklab(72.94% -0.0462 0.1343)
OKLCHoklch(72.94% 0.142 109)
XYZxyz(33.3500, 39.6005, 8.6826)
Luminance0.3960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE30 #3031AF
analogous
#AF6E30 #AFAE30 #70AF30
triadic
#AFAE30 #30AFAE #AE30AF
tetradic
#AFAE30 #30AF6E #3031AF #AF3070
square
#AFAE30 #30AF6E #3031AF #AF3070
split-complementary
#AFAE30 #3070AF #6E30AF
monochromatic
#4F4E16 #7F7E23 #AFAE30 #CECD4E #DCDB7E

Accessibility & contrast

On white

2.35
#AFAE30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#AFAE30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE30
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE30#FFFFFF#000000##000000
##AFAE301.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA718
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae30;
/* rgb */ color: rgb(175, 174, 48);
/* oklch */ color: oklch(72.9% 0.142 109.0);
Tailwind
colors: {
  custom: {
    50: '#cac571',
    500: '#afae30',
    950: '#000000',
  },
}
SCSS
$custom: #afae30;
$custom-light: #cac571;
$custom-dark: #000000;
JSON
{
  "hex": "#afae30",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 48
  },
  "hsl": {
    "h": 59.528,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72936,
    "c": 0.14199,
    "h": 109
  },
  "luminance": 0.39599
}

Semantic roles & 50–950 ramp

primary
#AFAE30
secondary
#7677C4
accent
#49E048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE30

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

Preview Lab → · Contrast checker → · Palette generator →

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