#AFC838#AFC838

#AFC838 is a light, vivid yellow-green. Relative luminance 0.507; OKLCH L 78.8% C 0.165 H 119.0°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#AFC838
RGBrgb(175, 200, 56)
HSLhsl(70, 57%, 50%)
HSVhsv(70, 72%, 78%)
CMYKcmyk(12.5%, 0%, 72%, 21.6%)
CIE-LABlab(76.50, -27.02, 65.03)
CIE-LCHlch(76.50, 70.42, 112.56°)
OKLaboklab(78.82% -0.0803 0.1446)
OKLCHoklch(78.82% 0.165 119)
XYZxyz(39.0481, 50.7083, 11.4712)
Luminance0.5071 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC838 #5138C8
analogous
#C89938 #AFC838 #67C838
triadic
#AFC838 #38AFC8 #C838AF
tetradic
#AFC838 #38C899 #5138C8 #C83867
square
#AFC838 #38C899 #5138C8 #C83867
split-complementary
#AFC838 #3867C8 #9938C8
monochromatic
#5C691D #85992A #AFC838 #C2D568 #D6E398

Accessibility & contrast

On white

1.88
#AFC838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.14
#AFC838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC838
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC838#FFFFFF#000000##000000
##AFC8381.001.8811.1411.14
#FFFFFF1.881.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD1D
Deuteranopia (green-blind)
#D2BD44
Tritanopia (blue-blind)
#B9BDAC
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #afc838;
/* rgb */ color: rgb(175, 200, 56);
/* oklch */ color: oklch(78.8% 0.165 119.0);
Tailwind
colors: {
  custom: {
    50: '#cad878',
    500: '#afc838',
    950: '#000000',
  },
}
SCSS
$custom: #afc838;
$custom-light: #cad878;
$custom-dark: #000000;
JSON
{
  "hex": "#afc838",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 70.417,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.78819,
    "c": 0.16536,
    "h": 119
  },
  "luminance": 0.50708
}

Semantic roles & 50–950 ramp

primary
#AFC838
secondary
#3D3273
accent
#48E062
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFC838

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

Preview Lab → · Contrast checker → · Palette generator →

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