#AFAE26#AFAE26

#AFAE26 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.9% C 0.147 H 109.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#AFAE26
RGBrgb(175, 174, 38)
HSLhsl(60, 64%, 42%)
HSVhsv(60, 78%, 69%)
CMYKcmyk(0%, 0.6%, 78.3%, 31.4%)
CIE-LABlab(69.13, -14.93, 64.02)
CIE-LCHlch(69.13, 65.73, 103.13°)
OKLaboklab(72.88% -0.0483 0.1393)
OKLCHoklch(72.88% 0.147 109.1)
XYZxyz(33.1664, 39.5271, 7.7158)
Luminance0.3953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE26 #2627AF
analogous
#AF6A26 #AFAE26 #6CAF26
triadic
#AFAE26 #26AFAE #AE26AF
tetradic
#AFAE26 #26AF6A #2627AF #AF266C
square
#AFAE26 #26AF6A #2627AF #AF266C
split-complementary
#AFAE26 #266CAF #6A26AF
monochromatic
#4A4A10 #7D7C1B #AFAE26 #D5D43D #E0DF70

Accessibility & contrast

On white

2.36
#AFAE26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#AFAE26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE26
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE26#FFFFFF#000000##000000
##AFAE261.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BEAB32
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae26;
/* rgb */ color: rgb(175, 174, 38);
/* oklch */ color: oklch(72.9% 0.147 109.1);
Tailwind
colors: {
  custom: {
    50: '#cbc56d',
    500: '#afae26',
    950: '#000000',
  },
}
SCSS
$custom: #afae26;
$custom-light: #cbc56d;
$custom-dark: #000000;
JSON
{
  "hex": "#afae26",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 38
  },
  "hsl": {
    "h": 59.562,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72877,
    "c": 0.14741,
    "h": 109.1
  },
  "luminance": 0.39526
}

Semantic roles & 50–950 ramp

primary
#AFAE26
secondary
#6A6BC7
accent
#42E740
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE26

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

Preview Lab → · Contrast checker → · Palette generator →

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