#AFA829#AFA829

#AFA829 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.140 H 106.2°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#AFA829
RGBrgb(175, 168, 41)
HSLhsl(57, 62%, 42%)
HSVhsv(57, 77%, 69%)
CMYKcmyk(0%, 4%, 76.6%, 31.4%)
CIE-LABlab(67.49, -11.72, 61.58)
CIE-LCHlch(67.49, 62.69, 100.78°)
OKLaboklab(71.57% -0.039 0.1347)
OKLCHoklch(71.57% 0.14 106.2)
XYZxyz(32.0834, 37.2805, 7.6032)
Luminance0.3728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA829 #2930AF
analogous
#AF6529 #AFA829 #73AF29
triadic
#AFA829 #29AFA8 #A829AF
tetradic
#AFA829 #29AF65 #2930AF #AF2973
square
#AFA829 #29AF65 #2930AF #AF2973
split-complementary
#AFA829 #2973AF #6529AF
monochromatic
#4C4912 #7D781D #AFA829 #D3CB42 #DED974

Accessibility & contrast

On white

2.48
#AFA829 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#AFA829 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA829
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA829#FFFFFF#000000##000000
##AFA8291.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A209
Deuteranopia (green-blind)
#BAA733
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa829;
/* rgb */ color: rgb(175, 168, 41);
/* oklch */ color: oklch(71.6% 0.140 106.2);
Tailwind
colors: {
  custom: {
    50: '#cbc16d',
    500: '#afa829',
    950: '#000000',
  },
}
SCSS
$custom: #afa829;
$custom-light: #cbc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa829",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 41
  },
  "hsl": {
    "h": 56.866,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.7157,
    "c": 0.14021,
    "h": 106.2
  },
  "luminance": 0.37279
}

Semantic roles & 50–950 ramp

primary
#AFA829
secondary
#6E73C6
accent
#4BE543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA829

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

Preview Lab → · Contrast checker → · Palette generator →

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