#AFC531#AFC531

#AFC531 is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.1% C 0.166 H 118.0°. Best body text is #000000 at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#AFC531
RGBrgb(175, 197, 49)
HSLhsl(69, 60%, 48%)
HSVhsv(69, 75%, 77%)
CMYKcmyk(11.2%, 0%, 75.1%, 22.7%)
CIE-LABlab(75.62, -25.92, 66.53)
CIE-LCHlch(75.62, 71.40, 111.28°)
OKLaboklab(78.1% -0.0778 0.1466)
OKLCHoklch(78.1% 0.166 118)
XYZxyz(38.2007, 49.2686, 10.4025)
Luminance0.4927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC531 #4731C5
analogous
#C59131 #AFC531 #65C531
triadic
#AFC531 #31AFC5 #C531AF
tetradic
#AFC531 #31C591 #4731C5 #C53165
square
#AFC531 #31C591 #4731C5 #C53165
split-complementary
#AFC531 #3165C5 #9131C5
monochromatic
#586319 #839425 #AFC531 #C4D75D #D6E38E

Accessibility & contrast

On white

1.93
#AFC531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.85
#AFC531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC531
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC531#FFFFFF#000000##000000
##AFC5311.001.9310.8510.85
#FFFFFF1.931.0021.0021.00
#00000010.8521.001.001.00
##00000010.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA0C
Deuteranopia (green-blind)
#D0BB3E
Tritanopia (blue-blind)
#BABAA9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc531;
/* rgb */ color: rgb(175, 197, 49);
/* oklch */ color: oklch(78.1% 0.166 118.0);
Tailwind
colors: {
  custom: {
    50: '#cbd675',
    500: '#afc531',
    950: '#000000',
  },
}
SCSS
$custom: #afc531;
$custom-light: #cbd675;
$custom-dark: #000000;
JSON
{
  "hex": "#afc531",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 49
  },
  "hsl": {
    "h": 68.919,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.78095,
    "c": 0.16595,
    "h": 118
  },
  "luminance": 0.49268
}

Semantic roles & 50–950 ramp

primary
#AFC531
secondary
#8F85CD
accent
#44E35C
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC531

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

Preview Lab → · Contrast checker → · Palette generator →

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