#AFAE38#AFAE38

#AFAE38 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 73.0% C 0.137 H 108.9°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#AFAE38
RGBrgb(175, 174, 56)
HSLhsl(59, 52%, 45%)
HSVhsv(59, 68%, 69%)
CMYKcmyk(0%, 0.6%, 68%, 31.4%)
CIE-LABlab(69.24, -14.10, 57.84)
CIE-LCHlch(69.24, 59.54, 103.70°)
OKLaboklab(72.99% -0.0443 0.1295)
OKLCHoklch(72.99% 0.137 108.9)
XYZxyz(33.5302, 39.6726, 9.6319)
Luminance0.3967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE38 #3839AF
analogous
#AF7338 #AFAE38 #74AF38
triadic
#AFAE38 #38AFAE #AE38AF
tetradic
#AFAE38 #38AF73 #3839AF #AF3874
square
#AFAE38 #38AF73 #3839AF #AF3874
split-complementary
#AFAE38 #3874AF #7338AF
monochromatic
#52521A #818029 #AFAE38 #CAC95A #D9D888

Accessibility & contrast

On white

2.35
#AFAE38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#AFAE38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE38
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE38#FFFFFF#000000##000000
##AFAE381.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA726
Deuteranopia (green-blind)
#BEAB40
Tritanopia (blue-blind)
#BBA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae38;
/* rgb */ color: rgb(175, 174, 56);
/* oklch */ color: oklch(73.0% 0.137 108.9);
Tailwind
colors: {
  custom: {
    50: '#cac576',
    500: '#afae38',
    950: '#000000',
  },
}
SCSS
$custom: #afae38;
$custom-light: #cac576;
$custom-dark: #000000;
JSON
{
  "hex": "#afae38",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 56
  },
  "hsl": {
    "h": 59.496,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72994,
    "c": 0.13681,
    "h": 108.9
  },
  "luminance": 0.39672
}

Semantic roles & 50–950 ramp

primary
#AFAE38
secondary
#8080C3
accent
#4EDB4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAE38

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

Preview Lab → · Contrast checker → · Palette generator →

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