#AFD738#AFD738

#AFD738 is a very light, vivid yellow-green. Relative luminance 0.580; OKLCH L 82.2% C 0.183 H 123.0°. Best body text is #000000 at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#AFD738
RGBrgb(175, 215, 56)
HSLhsl(75, 67%, 53%)
HSVhsv(75, 74%, 84%)
CMYKcmyk(18.6%, 0%, 74%, 15.7%)
CIE-LABlab(80.74, -34.05, 69.11)
CIE-LCHlch(80.74, 77.04, 116.23°)
OKLaboklab(82.24% -0.0996 0.1532)
OKLCHoklch(82.24% 0.183 123)
XYZxyz(42.6940, 58.0001, 12.6865)
Luminance0.5800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD738 #6038D7
analogous
#D7AF38 #AFD738 #60D738
triadic
#AFD738 #38AFD7 #D738AF
tetradic
#AFD738 #38D7AF #6038D7 #D73860
square
#AFD738 #38D7AF #6038D7 #D73860
split-complementary
#AFD738 #3860D7 #AF38D7
monochromatic
#637C19 #8CAF23 #AFD738 #C3E16B #D8EB9E

Accessibility & contrast

On white

1.67
#AFD738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.60
#AFD738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD738
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD738#FFFFFF#000000##000000
##AFD7381.001.6712.6012.60
#FFFFFF1.671.0021.0021.00
#00000012.6021.001.001.00
##00000012.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4C914
Deuteranopia (green-blind)
#DEC847
Tritanopia (blue-blind)
#B8CCB9
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #afd738;
/* rgb */ color: rgb(175, 215, 56);
/* oklch */ color: oklch(82.2% 0.183 123.0);
Tailwind
colors: {
  custom: {
    50: '#cbe37a',
    500: '#afd738',
    950: '#000000',
  },
}
SCSS
$custom: #afd738;
$custom-light: #cbe37a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd738",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 56
  },
  "hsl": {
    "h": 75.094,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82237,
    "c": 0.18271,
    "h": 123
  },
  "luminance": 0.58
}

Semantic roles & 50–950 ramp

primary
#AFD738
secondary
#453083
accent
#3EE969
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD738

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

Preview Lab → · Contrast checker → · Palette generator →

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