#AFC231#AFC231

#AFC231 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.4% C 0.163 H 117.0°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#AFC231
RGBrgb(175, 194, 49)
HSLhsl(68, 60%, 48%)
HSVhsv(68, 75%, 76%)
CMYKcmyk(9.8%, 0%, 74.7%, 23.9%)
CIE-LABlab(74.77, -24.46, 65.74)
CIE-LCHlch(74.77, 70.14, 110.41°)
OKLaboklab(77.42% -0.0738 0.1449)
OKLCHoklch(77.42% 0.163 117)
XYZxyz(37.5263, 47.9198, 10.1777)
Luminance0.4792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC231 #4431C2
analogous
#C28C31 #AFC231 #66C231
triadic
#AFC231 #31AFC2 #C231AF
tetradic
#AFC231 #31C28C #4431C2 #C23166
square
#AFC231 #31C28C #4431C2 #C23166
split-complementary
#AFC231 #3166C2 #8C31C2
monochromatic
#576018 #839125 #AFC231 #C5D65B #D7E28C

Accessibility & contrast

On white

1.98
#AFC231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#AFC231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC231
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC231#FFFFFF#000000##000000
##AFC2311.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB70F
Deuteranopia (green-blind)
#CEB93E
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc231;
/* rgb */ color: rgb(175, 194, 49);
/* oklch */ color: oklch(77.4% 0.163 117.0);
Tailwind
colors: {
  custom: {
    50: '#cad474',
    500: '#afc231',
    950: '#000000',
  },
}
SCSS
$custom: #afc231;
$custom-light: #cad474;
$custom-dark: #000000;
JSON
{
  "hex": "#afc231",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 67.862,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.77417,
    "c": 0.16262,
    "h": 117
  },
  "luminance": 0.47919
}

Semantic roles & 50–950 ramp

primary
#AFC231
secondary
#8C83CC
accent
#45E35A
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC231

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

Preview Lab → · Contrast checker → · Palette generator →

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