#AFAC34#AFAC34

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

Color values

HEX#AFAC34
RGBrgb(175, 172, 52)
HSLhsl(59, 54%, 45%)
HSVhsv(59, 70%, 69%)
CMYKcmyk(0%, 1.7%, 70.3%, 31.4%)
CIE-LABlab(68.66, -13.29, 58.81)
CIE-LCHlch(68.66, 60.29, 102.73°)
OKLaboklab(72.52% -0.0424 0.1308)
OKLCHoklch(72.52% 0.137 108)
XYZxyz(33.0528, 38.8680, 9.0093)
Luminance0.3887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC34 #3437AF
analogous
#AF6F34 #AFAC34 #74AF34
triadic
#AFAC34 #34AFAC #AC34AF
tetradic
#AFAC34 #34AF6F #3437AF #AF3474
square
#AFAC34 #34AF6F #3437AF #AF3474
split-complementary
#AFAC34 #3474AF #6F34AF
monochromatic
#514F18 #807E26 #AFAC34 #CCC954 #DAD883

Accessibility & contrast

On white

2.39
#AFAC34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC34#FFFFFF#000000##000000
##AFAC341.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afac34;
/* rgb */ color: rgb(175, 172, 52);
/* oklch */ color: oklch(72.5% 0.137 108.0);
Tailwind
colors: {
  custom: {
    50: '#cac473',
    500: '#afac34',
    950: '#000000',
  },
}
SCSS
$custom: #afac34;
$custom-light: #cac473;
$custom-dark: #000000;
JSON
{
  "hex": "#afac34",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 52
  },
  "hsl": {
    "h": 58.537,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72522,
    "c": 0.13749,
    "h": 108
  },
  "luminance": 0.38867
}

Semantic roles & 50–950 ramp

primary
#AFAC34
secondary
#7B7DC4
accent
#4EDE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC34

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

Preview Lab → · Contrast checker → · Palette generator →

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