#AFD438#AFD438

#AFD438 is a light, vivid yellow-green. Relative luminance 0.565; OKLCH L 81.6% C 0.179 H 122.3°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#AFD438
RGBrgb(175, 212, 56)
HSLhsl(74, 64%, 53%)
HSVhsv(74, 74%, 83%)
CMYKcmyk(17.5%, 0%, 73.6%, 16.9%)
CIE-LABlab(79.89, -32.67, 68.30)
CIE-LCHlch(79.89, 75.71, 115.57°)
OKLaboklab(81.55% -0.0958 0.1515)
OKLCHoklch(81.55% 0.179 122.3)
XYZxyz(41.9371, 56.4863, 12.4342)
Luminance0.5649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD438 #5D38D4
analogous
#D4AB38 #AFD438 #61D438
triadic
#AFD438 #38AFD4 #D438AF
tetradic
#AFD438 #38D4AB #5D38D4 #D43861
square
#AFD438 #38D4AB #5D38D4 #D43861
split-complementary
#AFD438 #3861D4 #AB38D4
monochromatic
#61781A #8AAA25 #AFD438 #C3DF6A #D7EA9D

Accessibility & contrast

On white

1.71
#AFD438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#AFD438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD438
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD438#FFFFFF#000000##000000
##AFD4381.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C716
Deuteranopia (green-blind)
#DCC646
Tritanopia (blue-blind)
#B8C9B6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd438;
/* rgb */ color: rgb(175, 212, 56);
/* oklch */ color: oklch(81.6% 0.179 122.3);
Tailwind
colors: {
  custom: {
    50: '#cbe17a',
    500: '#afd438',
    950: '#000000',
  },
}
SCSS
$custom: #afd438;
$custom-light: #cbe17a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd438",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 56
  },
  "hsl": {
    "h": 74.231,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81551,
    "c": 0.17922,
    "h": 122.3
  },
  "luminance": 0.56486
}

Semantic roles & 50–950 ramp

primary
#AFD438
secondary
#433080
accent
#40E768
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD438

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

Preview Lab → · Contrast checker → · Palette generator →

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