#AFA629#AFA629

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

Color values

HEX#AFA629
RGBrgb(175, 166, 41)
HSLhsl(56, 62%, 42%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 5.1%, 76.6%, 31.4%)
CIE-LABlab(66.94, -10.68, 61.08)
CIE-LCHlch(66.94, 62.00, 99.92°)
OKLaboklab(71.13% -0.0361 0.1336)
OKLCHoklch(71.13% 0.138 105.1)
XYZxyz(31.7170, 36.5477, 7.4811)
Luminance0.3655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA629 #2932AF
analogous
#AF6329 #AFA629 #75AF29
triadic
#AFA629 #29AFA6 #A629AF
tetradic
#AFA629 #29AF63 #2932AF #AF2975
square
#AFA629 #29AF63 #2932AF #AF2975
split-complementary
#AFA629 #2975AF #6329AF
monochromatic
#4C4812 #7D771D #AFA629 #D3C942 #DED774

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA629#FFFFFF#000000##000000
##AFA6291.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)
#B5A00B
Deuteranopia (green-blind)
#B8A533
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa629;
/* rgb */ color: rgb(175, 166, 41);
/* oklch */ color: oklch(71.1% 0.138 105.1);
Tailwind
colors: {
  custom: {
    50: '#cbc06d',
    500: '#afa629',
    950: '#000000',
  },
}
SCSS
$custom: #afa629;
$custom-light: #cbc06d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa629",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 41
  },
  "hsl": {
    "h": 55.97,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.71131,
    "c": 0.13838,
    "h": 105.1
  },
  "luminance": 0.36546
}

Semantic roles & 50–950 ramp

primary
#AFA629
secondary
#6E74C6
accent
#4EE543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA629

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

Preview Lab → · Contrast checker → · Palette generator →

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