#AFD338#AFD338

#AFD338 is a light, vivid yellow-green. Relative luminance 0.560; OKLCH L 81.3% C 0.178 H 122.1°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#AFD338
RGBrgb(175, 211, 56)
HSLhsl(74, 64%, 52%)
HSVhsv(74, 73%, 83%)
CMYKcmyk(17.1%, 0%, 73.5%, 17.3%)
CIE-LABlab(79.61, -32.21, 68.02)
CIE-LCHlch(79.61, 75.26, 115.34°)
OKLaboklab(81.32% -0.0945 0.1509)
OKLCHoklch(81.32% 0.178 122.1)
XYZxyz(41.6879, 55.9879, 12.3512)
Luminance0.5599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD338 #5C38D3
analogous
#D3A938 #AFD338 #62D338
triadic
#AFD338 #38AFD3 #D338AF
tetradic
#AFD338 #38D3A9 #5C38D3 #D33862
square
#AFD338 #38D3A9 #5C38D3 #D33862
split-complementary
#AFD338 #3862D3 #A938D3
monochromatic
#61761A #8AA925 #AFD338 #C3DE6A #D7E99C

Accessibility & contrast

On white

1.72
#AFD338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.20
#AFD338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD338
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD338#FFFFFF#000000##000000
##AFD3381.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C617
Deuteranopia (green-blind)
#DBC546
Tritanopia (blue-blind)
#B8C8B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd338;
/* rgb */ color: rgb(175, 211, 56);
/* oklch */ color: oklch(81.3% 0.178 122.1);
Tailwind
colors: {
  custom: {
    50: '#cbe07a',
    500: '#afd338',
    950: '#000000',
  },
}
SCSS
$custom: #afd338;
$custom-light: #cbe07a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd338",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 56
  },
  "hsl": {
    "h": 73.935,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81322,
    "c": 0.17806,
    "h": 122.1
  },
  "luminance": 0.55988
}

Semantic roles & 50–950 ramp

primary
#AFD338
secondary
#43307F
accent
#41E768
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD338

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

Preview Lab → · Contrast checker → · Palette generator →

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