#AFB529#AFB529

#AFB529 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.153 H 112.1°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#AFB529
RGBrgb(175, 181, 41)
HSLhsl(63, 63%, 44%)
HSVhsv(63, 77%, 71%)
CMYKcmyk(3.3%, 0%, 77.3%, 29%)
CIE-LABlab(71.09, -18.37, 64.87)
CIE-LCHlch(71.09, 67.42, 105.81°)
OKLaboklab(74.45% -0.0576 0.1417)
OKLCHoklch(74.45% 0.153 112.1)
XYZxyz(34.6045, 42.3227, 8.4436)
Luminance0.4232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB529 #2F29B5
analogous
#B57529 #AFB529 #69B529
triadic
#AFB529 #29AFB5 #B529AF
tetradic
#AFB529 #29B575 #2F29B5 #B52969
square
#AFB529 #29B575 #2F29B5 #B52969
split-complementary
#AFB529 #2969B5 #7529B5
monochromatic
#4F5112 #7F831E #AFB529 #CFD546 #DCE078

Accessibility & contrast

On white

2.22
#AFB529 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#AFB529 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB529
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB529#FFFFFF#000000##000000
##AFB5291.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C4B036
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb529;
/* rgb */ color: rgb(175, 181, 41);
/* oklch */ color: oklch(74.5% 0.153 112.1);
Tailwind
colors: {
  custom: {
    50: '#cbca6f',
    500: '#afb529',
    950: '#000000',
  },
}
SCSS
$custom: #afb529;
$custom-light: #cbca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb529",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 41
  },
  "hsl": {
    "h": 62.571,
    "s": 63.063,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74451,
    "c": 0.15292,
    "h": 112.1
  },
  "luminance": 0.42322
}

Semantic roles & 50–950 ramp

primary
#AFB529
secondary
#7572C8
accent
#42E649
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB529

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

Preview Lab → · Contrast checker → · Palette generator →

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