#AFD938#AFD938

#AFD938 is a very light, vivid yellow-green. Relative luminance 0.590; OKLCH L 82.7% C 0.185 H 123.5°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#AFD938
RGBrgb(175, 217, 56)
HSLhsl(76, 68%, 54%)
HSVhsv(76, 74%, 85%)
CMYKcmyk(19.4%, 0%, 74.2%, 14.9%)
CIE-LABlab(81.31, -34.97, 69.65)
CIE-LCHlch(81.31, 77.93, 116.66°)
OKLaboklab(82.7% -0.1021 0.1543)
OKLCHoklch(82.7% 0.185 123.5)
XYZxyz(43.2064, 59.0249, 12.8573)
Luminance0.5903 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD938 #6238D9
analogous
#D9B238 #AFD938 #5ED938
triadic
#AFD938 #38AFD9 #D938AF
tetradic
#AFD938 #38D9B2 #6238D9 #D9385E
square
#AFD938 #38D9B2 #6238D9 #D9385E
split-complementary
#AFD938 #385ED9 #B238D9
monochromatic
#647E18 #8CB222 #AFD938 #C4E36B #D8ED9F

Accessibility & contrast

On white

1.64
#AFD938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#AFD938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD938
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD938#FFFFFF#000000##000000
##AFD9381.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CB13
Deuteranopia (green-blind)
#E0CA47
Tritanopia (blue-blind)
#B8CEBA
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd938;
/* rgb */ color: rgb(175, 217, 56);
/* oklch */ color: oklch(82.7% 0.185 123.5);
Tailwind
colors: {
  custom: {
    50: '#cbe47a',
    500: '#afd938',
    950: '#000000',
  },
}
SCSS
$custom: #afd938;
$custom-light: #cbe47a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd938",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 75.652,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82695,
    "c": 0.18504,
    "h": 123.5
  },
  "luminance": 0.59025
}

Semantic roles & 50–950 ramp

primary
#AFD938
secondary
#463086
accent
#3DEB6A
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD938

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

Preview Lab → · Contrast checker → · Palette generator →

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