#AFC542#AFC542

#AFC542 is a light, vivid yellow-green. Relative luminance 0.494; OKLCH L 78.2% C 0.155 H 118.4°. Best body text is #000000 at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#AFC542
RGBrgb(175, 197, 66)
HSLhsl(70, 53%, 52%)
HSVhsv(70, 66%, 77%)
CMYKcmyk(11.2%, 0%, 66.5%, 22.7%)
CIE-LABlab(75.72, -25.00, 60.53)
CIE-LCHlch(75.72, 65.49, 112.44°)
OKLaboklab(78.22% -0.0737 0.1367)
OKLCHoklch(78.22% 0.155 118.4)
XYZxyz(38.6296, 49.4401, 12.6611)
Luminance0.4944 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC542 #5842C5
analogous
#C59942 #AFC542 #6EC542
triadic
#AFC542 #42AFC5 #C542AF
tetradic
#AFC542 #42C599 #5842C5 #C5426E
square
#AFC542 #42C599 #5842C5 #C5426E
split-complementary
#AFC542 #426EC5 #9942C5
monochromatic
#5F6C21 #889A2F #AFC542 #C3D371 #D7E2A0

Accessibility & contrast

On white

1.93
#AFC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.89
#AFC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC542
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC542#FFFFFF#000000##000000
##AFC5421.001.9310.8910.89
#FFFFFF1.931.0021.0021.00
#00000010.8921.001.001.00
##00000010.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA2F
Deuteranopia (green-blind)
#CFBB4C
Tritanopia (blue-blind)
#B9BBAA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc542;
/* rgb */ color: rgb(175, 197, 66);
/* oklch */ color: oklch(78.2% 0.155 118.4);
Tailwind
colors: {
  custom: {
    50: '#cad67d',
    500: '#afc542',
    950: '#000000',
  },
}
SCSS
$custom: #afc542;
$custom-light: #cad67d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc542",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 70.076,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.78215,
    "c": 0.15531,
    "h": 118.4
  },
  "luminance": 0.4944
}

Semantic roles & 50–950 ramp

primary
#AFC542
secondary
#9E95CE
accent
#4BDC64
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC542

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

Preview Lab → · Contrast checker → · Palette generator →

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