#AFA333#AFA333

#AFA333 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.5% C 0.130 H 103.1°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA333
RGBrgb(175, 163, 51)
HSLhsl(54, 55%, 44%)
HSVhsv(54, 71%, 69%)
CMYKcmyk(0%, 6.9%, 70.9%, 31.4%)
CIE-LABlab(66.17, -8.64, 56.74)
CIE-LCHlch(66.17, 57.39, 98.66°)
OKLaboklab(70.54% -0.0294 0.1263)
OKLCHoklch(70.54% 0.13 103.1)
XYZxyz(31.3753, 35.5487, 8.3402)
Luminance0.3555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA333 #333FAF
analogous
#AF6533 #AFA333 #7DAF33
triadic
#AFA333 #33AFA3 #A333AF
tetradic
#AFA333 #33AF65 #333FAF #AF337D
square
#AFA333 #33AF65 #333FAF #AF337D
split-complementary
#AFA333 #337DAF #6533AF
monochromatic
#504B17 #807725 #AFA333 #CDC152 #DBD282

Accessibility & contrast

On white

2.59
#AFA333 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AFA333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA333
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA333#FFFFFF#000000##000000
##AFA3331.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E21
Deuteranopia (green-blind)
#B6A33A
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa333;
/* rgb */ color: rgb(175, 163, 51);
/* oklch */ color: oklch(70.5% 0.130 103.1);
Tailwind
colors: {
  custom: {
    50: '#cabd72',
    500: '#afa333',
    950: '#000000',
  },
}
SCSS
$custom: #afa333;
$custom-light: #cabd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afa333",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 51
  },
  "hsl": {
    "h": 54.194,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.70544,
    "c": 0.12963,
    "h": 103.1
  },
  "luminance": 0.35547
}

Semantic roles & 50–950 ramp

primary
#AFA333
secondary
#7A81C4
accent
#58DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA333

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

Preview Lab → · Contrast checker → · Palette generator →

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