#AFB528#AFB528

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

Color values

HEX#AFB528
RGBrgb(175, 181, 40)
HSLhsl(63, 64%, 43%)
HSVhsv(63, 78%, 71%)
CMYKcmyk(3.3%, 0%, 77.9%, 29%)
CIE-LABlab(71.09, -18.41, 65.17)
CIE-LCHlch(71.09, 67.72, 105.78°)
OKLaboklab(74.44% -0.0578 0.1421)
OKLCHoklch(74.44% 0.153 112.1)
XYZxyz(34.5873, 42.3158, 8.3529)
Luminance0.4232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB528 #2E28B5
analogous
#B57428 #AFB528 #68B528
triadic
#AFB528 #28AFB5 #B528AF
tetradic
#AFB528 #28B574 #2E28B5 #B52868
square
#AFB528 #28B574 #2E28B5 #B52868
split-complementary
#AFB528 #2868B5 #7428B5
monochromatic
#4E5112 #7F831D #AFB528 #D0D644 #DCE177

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB528#FFFFFF#000000##000000
##AFB5281.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)
#C4B035
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb528;
/* rgb */ color: rgb(175, 181, 40);
/* oklch */ color: oklch(74.4% 0.153 112.1);
Tailwind
colors: {
  custom: {
    50: '#cbca6f',
    500: '#afb528',
    950: '#000000',
  },
}
SCSS
$custom: #afb528;
$custom-light: #cbca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb528",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 40
  },
  "hsl": {
    "h": 62.553,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74445,
    "c": 0.15342,
    "h": 112.1
  },
  "luminance": 0.42315
}

Semantic roles & 50–950 ramp

primary
#AFB528
secondary
#7470C8
accent
#41E748
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB528

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

Preview Lab → · Contrast checker → · Palette generator →

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