#AFAC30#AFAC30

#AFAC30 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.140 H 108.0°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AFAC30
RGBrgb(175, 172, 48)
HSLhsl(59, 57%, 44%)
HSVhsv(59, 73%, 69%)
CMYKcmyk(0%, 1.7%, 72.6%, 31.4%)
CIE-LABlab(68.63, -13.48, 60.25)
CIE-LCHlch(68.63, 61.74, 102.61°)
OKLaboklab(72.49% -0.0433 0.1331)
OKLCHoklch(72.49% 0.14 108)
XYZxyz(32.9665, 38.8335, 8.5548)
Luminance0.3883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC30 #3033AF
analogous
#AF6C30 #AFAC30 #72AF30
triadic
#AFAC30 #30AFAC #AC30AF
tetradic
#AFAC30 #30AF6C #3033AF #AF3072
square
#AFAC30 #30AF6C #3033AF #AF3072
split-complementary
#AFAC30 #3072AF #6C30AF
monochromatic
#4F4E16 #7F7D23 #AFAC30 #CECB4E #DCD97E

Accessibility & contrast

On white

2.40
#AFAC30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AFAC30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC30
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC30#FFFFFF#000000##000000
##AFAC301.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA519
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac30;
/* rgb */ color: rgb(175, 172, 48);
/* oklch */ color: oklch(72.5% 0.140 108.0);
Tailwind
colors: {
  custom: {
    50: '#cac471',
    500: '#afac30',
    950: '#000000',
  },
}
SCSS
$custom: #afac30;
$custom-light: #cac471;
$custom-dark: #000000;
JSON
{
  "hex": "#afac30",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 48
  },
  "hsl": {
    "h": 58.583,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72494,
    "c": 0.14002,
    "h": 108
  },
  "luminance": 0.38832
}

Semantic roles & 50–950 ramp

primary
#AFAC30
secondary
#7678C4
accent
#4BE048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC30

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

Preview Lab → · Contrast checker → · Palette generator →

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