#AFAC27#AFAC27

#AFAC27 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.4% C 0.145 H 108.2°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#AFAC27
RGBrgb(175, 172, 39)
HSLhsl(59, 64%, 42%)
HSVhsv(59, 78%, 69%)
CMYKcmyk(0%, 1.7%, 77.7%, 31.4%)
CIE-LABlab(68.58, -13.87, 63.22)
CIE-LCHlch(68.58, 64.72, 102.37°)
OKLaboklab(72.44% -0.0452 0.1378)
OKLCHoklch(72.44% 0.145 108.2)
XYZxyz(32.7992, 38.7666, 7.6740)
Luminance0.3876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC27 #272AAF
analogous
#AF6827 #AFAC27 #6EAF27
triadic
#AFAC27 #27AFAC #AC27AF
tetradic
#AFAC27 #27AF68 #272AAF #AF276E
square
#AFAC27 #27AF68 #272AAF #AF276E
split-complementary
#AFAC27 #276EAF #6827AF
monochromatic
#4B4A11 #7D7B1C #AFAC27 #D4D13F #DFDD71

Accessibility & contrast

On white

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

On black

8.75
#AFAC27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC27
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC27#FFFFFF#000000##000000
##AFAC271.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#BDA932
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac27;
/* rgb */ color: rgb(175, 172, 39);
/* oklch */ color: oklch(72.4% 0.145 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46d',
    500: '#afac27',
    950: '#000000',
  },
}
SCSS
$custom: #afac27;
$custom-light: #cbc46d;
$custom-dark: #000000;
JSON
{
  "hex": "#afac27",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 39
  },
  "hsl": {
    "h": 58.676,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.7244,
    "c": 0.145,
    "h": 108.2
  },
  "luminance": 0.38765
}

Semantic roles & 50–950 ramp

primary
#AFAC27
secondary
#6B6DC6
accent
#45E741
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC27

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

Preview Lab → · Contrast checker → · Palette generator →

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