#AFA626#AFA626

#AFA626 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.140 H 105.2°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA626
RGBrgb(175, 166, 38)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 5.1%, 78.3%, 31.4%)
CIE-LABlab(66.92, -10.79, 62.03)
CIE-LCHlch(66.92, 62.96, 99.87°)
OKLaboklab(71.11% -0.0367 0.135)
OKLCHoklch(71.11% 0.14 105.2)
XYZxyz(31.6667, 36.5276, 7.2158)
Luminance0.3653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA626 #262FAF
analogous
#AF6126 #AFA626 #74AF26
triadic
#AFA626 #26AFA6 #A626AF
tetradic
#AFA626 #26AF61 #262FAF #AF2674
square
#AFA626 #26AF61 #262FAF #AF2674
split-complementary
#AFA626 #2674AF #6126AF
monochromatic
#4A4710 #7D761B #AFA626 #D5CB3D #E0D870

Accessibility & contrast

On white

2.53
#AFA626 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA626 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA626
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA626#FFFFFF#000000##000000
##AFA6261.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A001
Deuteranopia (green-blind)
#B8A530
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa626;
/* rgb */ color: rgb(175, 166, 38);
/* oklch */ color: oklch(71.1% 0.140 105.2);
Tailwind
colors: {
  custom: {
    50: '#cbc06c',
    500: '#afa626',
    950: '#000000',
  },
}
SCSS
$custom: #afa626;
$custom-light: #cbc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa626",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 38
  },
  "hsl": {
    "h": 56.058,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71114,
    "c": 0.13994,
    "h": 105.2
  },
  "luminance": 0.36526
}

Semantic roles & 50–950 ramp

primary
#AFA626
secondary
#6A70C7
accent
#4BE740
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA626

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

Preview Lab → · Contrast checker → · Palette generator →

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