#AFC131#AFC131

#AFC131 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.2% C 0.162 H 116.7°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#AFC131
RGBrgb(175, 193, 49)
HSLhsl(68, 60%, 47%)
HSVhsv(68, 75%, 76%)
CMYKcmyk(9.3%, 0%, 74.6%, 24.3%)
CIE-LABlab(74.49, -23.98, 65.48)
CIE-LCHlch(74.49, 69.73, 110.11°)
OKLaboklab(77.19% -0.0724 0.1444)
OKLCHoklch(77.19% 0.162 116.7)
XYZxyz(37.3045, 47.4761, 10.1038)
Luminance0.4748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC131 #4331C1
analogous
#C18B31 #AFC131 #67C131
triadic
#AFC131 #31AFC1 #C131AF
tetradic
#AFC131 #31C18B #4331C1 #C13167
square
#AFC131 #31C18B #4331C1 #C13167
split-complementary
#AFC131 #3167C1 #8B31C1
monochromatic
#565F18 #839025 #AFC131 #C6D55A #D7E28B

Accessibility & contrast

On white

2.00
#AFC131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.50
#AFC131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC131
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC131#FFFFFF#000000##000000
##AFC1311.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB710
Deuteranopia (green-blind)
#CDB83E
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc131;
/* rgb */ color: rgb(175, 193, 49);
/* oklch */ color: oklch(77.2% 0.162 116.7);
Tailwind
colors: {
  custom: {
    50: '#cad374',
    500: '#afc131',
    950: '#000000',
  },
}
SCSS
$custom: #afc131;
$custom-light: #cad374;
$custom-dark: #000000;
JSON
{
  "hex": "#afc131",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 49
  },
  "hsl": {
    "h": 67.5,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.77191,
    "c": 0.16151,
    "h": 116.7
  },
  "luminance": 0.47476
}

Semantic roles & 50–950 ramp

primary
#AFC131
secondary
#8B82CC
accent
#45E359
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC131

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

Preview Lab → · Contrast checker → · Palette generator →

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