#AFAA26#AFAA26

#AFAA26 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.144 H 107.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA26
RGBrgb(175, 170, 38)
HSLhsl(58, 64%, 42%)
HSVhsv(58, 78%, 69%)
CMYKcmyk(0%, 2.9%, 78.3%, 31.4%)
CIE-LABlab(68.02, -12.88, 63.02)
CIE-LCHlch(68.02, 64.33, 101.55°)
OKLaboklab(71.99% -0.0425 0.1372)
OKLCHoklch(71.99% 0.144 107.2)
XYZxyz(32.4051, 38.0045, 7.4620)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA26 #262BAF
analogous
#AF6626 #AFAA26 #70AF26
triadic
#AFAA26 #26AFAA #AA26AF
tetradic
#AFAA26 #26AF66 #262BAF #AF2670
square
#AFAA26 #26AF66 #262BAF #AF2670
split-complementary
#AFAA26 #2670AF #6626AF
monochromatic
#4A4810 #7D791B #AFAA26 #D5CF3D #E0DC70

Accessibility & contrast

On white

2.44
#AFAA26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA26
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA26#FFFFFF#000000##000000
##AFAA261.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#BBA831
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa26;
/* rgb */ color: rgb(175, 170, 38);
/* oklch */ color: oklch(72.0% 0.144 107.2);
Tailwind
colors: {
  custom: {
    50: '#cbc36c',
    500: '#afaa26',
    950: '#000000',
  },
}
SCSS
$custom: #afaa26;
$custom-light: #cbc36c;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa26",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 38
  },
  "hsl": {
    "h": 57.81,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71993,
    "c": 0.14361,
    "h": 107.2
  },
  "luminance": 0.38003
}

Semantic roles & 50–950 ramp

primary
#AFAA26
secondary
#6A6EC7
accent
#47E740
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA26

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

Preview Lab → · Contrast checker → · Palette generator →

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