#AFAA30#AFAA30

#AFAA30 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.138 H 107.0°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFAA30
RGBrgb(175, 170, 48)
HSLhsl(58, 57%, 44%)
HSVhsv(58, 73%, 69%)
CMYKcmyk(0%, 2.9%, 72.6%, 31.4%)
CIE-LABlab(68.08, -12.45, 59.72)
CIE-LCHlch(68.08, 61.01, 101.77°)
OKLaboklab(72.05% -0.0404 0.132)
OKLCHoklch(72.05% 0.138 107)
XYZxyz(32.5887, 38.0779, 8.4289)
Luminance0.3808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA30 #3035AF
analogous
#AF6A30 #AFAA30 #74AF30
triadic
#AFAA30 #30AFAA #AA30AF
tetradic
#AFAA30 #30AF6A #3035AF #AF3074
square
#AFAA30 #30AF6A #3035AF #AF3074
split-complementary
#AFAA30 #3074AF #6A30AF
monochromatic
#4F4D16 #7F7B23 #AFAA30 #CEC94E #DCD87E

Accessibility & contrast

On white

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

On black

8.62
#AFAA30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA30
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA30#FFFFFF#000000##000000
##AFAA301.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaa30;
/* rgb */ color: rgb(175, 170, 48);
/* oklch */ color: oklch(72.1% 0.138 107.0);
Tailwind
colors: {
  custom: {
    50: '#cac371',
    500: '#afaa30',
    950: '#000000',
  },
}
SCSS
$custom: #afaa30;
$custom-light: #cac371;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa30",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 48
  },
  "hsl": {
    "h": 57.638,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72054,
    "c": 0.13807,
    "h": 107
  },
  "luminance": 0.38077
}

Semantic roles & 50–950 ramp

primary
#AFAA30
secondary
#767AC4
accent
#4EE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA30

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

Preview Lab → · Contrast checker → · Palette generator →

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