#AFD238#AFD238

#AFD238 is a light, vivid yellow-green. Relative luminance 0.555; OKLCH L 81.1% C 0.177 H 121.8°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#AFD238
RGBrgb(175, 210, 56)
HSLhsl(74, 63%, 52%)
HSVhsv(74, 73%, 82%)
CMYKcmyk(16.7%, 0%, 73.3%, 17.6%)
CIE-LABlab(79.32, -31.74, 67.75)
CIE-LCHlch(79.32, 74.82, 115.10°)
OKLaboklab(81.09% -0.0933 0.1503)
OKLCHoklch(81.09% 0.177 121.8)
XYZxyz(41.4402, 55.4926, 12.2686)
Luminance0.5549 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD238 #5B38D2
analogous
#D2A838 #AFD238 #62D238
triadic
#AFD238 #38AFD2 #D238AF
tetradic
#AFD238 #38D2A8 #5B38D2 #D23862
square
#AFD238 #38D2A8 #5B38D2 #D23862
split-complementary
#AFD238 #3862D2 #A838D2
monochromatic
#61751A #8AA726 #AFD238 #C3DD6A #D7E99C

Accessibility & contrast

On white

1.74
#AFD238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#AFD238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD238
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD238#FFFFFF#000000##000000
##AFD2381.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC518
Deuteranopia (green-blind)
#DAC546
Tritanopia (blue-blind)
#B8C7B5
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #afd238;
/* rgb */ color: rgb(175, 210, 56);
/* oklch */ color: oklch(81.1% 0.177 121.8);
Tailwind
colors: {
  custom: {
    50: '#cbdf79',
    500: '#afd238',
    950: '#000000',
  },
}
SCSS
$custom: #afd238;
$custom-light: #cbdf79;
$custom-dark: #000000;
JSON
{
  "hex": "#afd238",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 56
  },
  "hsl": {
    "h": 73.636,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.81094,
    "c": 0.1769,
    "h": 121.8
  },
  "luminance": 0.55493
}

Semantic roles & 50–950 ramp

primary
#AFD238
secondary
#42317E
accent
#42E667
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD238

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

Preview Lab → · Contrast checker → · Palette generator →

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