#AFB533#AFB533

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

Color values

HEX#AFB533
RGBrgb(175, 181, 51)
HSLhsl(63, 56%, 45%)
HSVhsv(63, 72%, 71%)
CMYKcmyk(3.3%, 0%, 71.8%, 29%)
CIE-LABlab(71.15, -17.93, 61.60)
CIE-LCHlch(71.15, 64.16, 106.23°)
OKLaboklab(74.51% -0.0555 0.1365)
OKLCHoklch(74.51% 0.147 112.1)
XYZxyz(34.8017, 42.4016, 9.4824)
Luminance0.4240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB533 #3933B5
analogous
#B57A33 #AFB533 #6EB533
triadic
#AFB533 #33AFB5 #B533AF
tetradic
#AFB533 #33B57A #3933B5 #B5336E
square
#AFB533 #33B57A #3933B5 #B5336E
split-complementary
#AFB533 #336EB5 #7A33B5
monochromatic
#535618 #818526 #AFB533 #CACF56 #D9DD86

Accessibility & contrast

On white

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

On black

9.48
#AFB533 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB533
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB533#FFFFFF#000000##000000
##AFB5331.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD1B
Deuteranopia (green-blind)
#C3B03D
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb533;
/* rgb */ color: rgb(175, 181, 51);
/* oklch */ color: oklch(74.5% 0.147 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb74',
    500: '#afb533',
    950: '#000000',
  },
}
SCSS
$custom: #afb533;
$custom-light: #cacb74;
$custom-dark: #000000;
JSON
{
  "hex": "#afb533",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 51
  },
  "hsl": {
    "h": 62.769,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74511,
    "c": 0.14736,
    "h": 112.1
  },
  "luminance": 0.42401
}

Semantic roles & 50–950 ramp

primary
#AFB533
secondary
#817DC6
accent
#48DF4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB533

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

Preview Lab → · Contrast checker → · Palette generator →

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