#AFAC38#AFAC38

#AFAC38 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.135 H 107.9°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFAC38
RGBrgb(175, 172, 56)
HSLhsl(58, 52%, 45%)
HSVhsv(58, 68%, 69%)
CMYKcmyk(0%, 1.7%, 68%, 31.4%)
CIE-LABlab(68.68, -13.07, 57.29)
CIE-LCHlch(68.68, 58.76, 102.85°)
OKLaboklab(72.55% -0.0414 0.1283)
OKLCHoklch(72.55% 0.135 107.9)
XYZxyz(33.1467, 38.9056, 9.5041)
Luminance0.3891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC38 #383BAF
analogous
#AF7038 #AFAC38 #77AF38
triadic
#AFAC38 #38AFAC #AC38AF
tetradic
#AFAC38 #38AF70 #383BAF #AF3877
square
#AFAC38 #38AF70 #383BAF #AF3877
split-complementary
#AFAC38 #3877AF #7038AF
monochromatic
#52511A #817E29 #AFAC38 #CAC75A #D9D788

Accessibility & contrast

On white

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

On black

8.78
#AFAC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC38
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC38#FFFFFF#000000##000000
##AFAC381.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BCAA40
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac38;
/* rgb */ color: rgb(175, 172, 56);
/* oklch */ color: oklch(72.6% 0.135 107.9);
Tailwind
colors: {
  custom: {
    50: '#cac475',
    500: '#afac38',
    950: '#000000',
  },
}
SCSS
$custom: #afac38;
$custom-light: #cac475;
$custom-dark: #000000;
JSON
{
  "hex": "#afac38",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 58.487,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72553,
    "c": 0.13479,
    "h": 107.9
  },
  "luminance": 0.38905
}

Semantic roles & 50–950 ramp

primary
#AFAC38
secondary
#8081C3
accent
#50DB4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC38

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

Preview Lab → · Contrast checker → · Palette generator →

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