#AFC831#AFC831

#AFC831 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 78.8% C 0.169 H 118.9°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#AFC831
RGBrgb(175, 200, 49)
HSLhsl(70, 61%, 49%)
HSVhsv(70, 76%, 78%)
CMYKcmyk(12.5%, 0%, 75.5%, 21.6%)
CIE-LABlab(76.46, -27.36, 67.32)
CIE-LCHlch(76.46, 72.67, 112.11°)
OKLaboklab(78.78% -0.0818 0.1483)
OKLCHoklch(78.78% 0.169 118.9)
XYZxyz(38.8887, 50.6446, 10.6318)
Luminance0.5064 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC831 #4A31C8
analogous
#C89631 #AFC831 #64C831
triadic
#AFC831 #31AFC8 #C831AF
tetradic
#AFC831 #31C896 #4A31C8 #C83164
square
#AFC831 #31C896 #4A31C8 #C83164
split-complementary
#AFC831 #3164C8 #9631C8
monochromatic
#596619 #849725 #AFC831 #C4D85F #D6E490

Accessibility & contrast

On white

1.89
#AFC831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.13
#AFC831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC831
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC831#FFFFFF#000000##000000
##AFC8311.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD09
Deuteranopia (green-blind)
#D2BD3F
Tritanopia (blue-blind)
#BABDAC
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #afc831;
/* rgb */ color: rgb(175, 200, 49);
/* oklch */ color: oklch(78.8% 0.169 118.9);
Tailwind
colors: {
  custom: {
    50: '#cbd875',
    500: '#afc831',
    950: '#000000',
  },
}
SCSS
$custom: #afc831;
$custom-light: #cbd875;
$custom-dark: #000000;
JSON
{
  "hex": "#afc831",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 69.934,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.78776,
    "c": 0.16931,
    "h": 118.9
  },
  "luminance": 0.50644
}

Semantic roles & 50–950 ramp

primary
#AFC831
secondary
#382D70
accent
#44E45E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #AFC831

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

Preview Lab → · Contrast checker → · Palette generator →

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