#AFC740#AFC740

#AFC740 is a light, vivid yellow-green. Relative luminance 0.503; OKLCH L 78.7% C 0.159 H 118.9°. Best body text is #000000 at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#AFC740
RGBrgb(175, 199, 64)
HSLhsl(71, 55%, 52%)
HSVhsv(71, 68%, 78%)
CMYKcmyk(12.1%, 0%, 67.8%, 22%)
CIE-LABlab(76.27, -26.09, 61.87)
CIE-LCHlch(76.27, 67.14, 112.86°)
OKLaboklab(78.65% -0.077 0.1392)
OKLCHoklch(78.65% 0.159 118.9)
XYZxyz(39.0288, 50.3312, 12.5083)
Luminance0.5033 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC740 #5840C7
analogous
#C79C40 #AFC740 #6CC740
triadic
#AFC740 #40AFC7 #C740AF
tetradic
#AFC740 #40C79C #5840C7 #C7406C
square
#AFC740 #40C79C #5840C7 #C7406C
split-complementary
#AFC740 #406CC7 #9C40C7
monochromatic
#5F6D20 #889C2E #AFC740 #C3D56F #D7E39F

Accessibility & contrast

On white

1.90
#AFC740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.07
#AFC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC740
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC740#FFFFFF#000000##000000
##AFC7401.001.9011.0711.07
#FFFFFF1.901.0021.0021.00
#00000011.0721.001.001.00
##00000011.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D1BD4A
Tritanopia (blue-blind)
#B9BCAC
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #afc740;
/* rgb */ color: rgb(175, 199, 64);
/* oklch */ color: oklch(78.7% 0.159 118.9);
Tailwind
colors: {
  custom: {
    50: '#cad87c',
    500: '#afc740',
    950: '#000000',
  },
}
SCSS
$custom: #afc740;
$custom-light: #cad87c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc740",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 70.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.78651,
    "c": 0.15906,
    "h": 118.9
  },
  "luminance": 0.50331
}

Semantic roles & 50–950 ramp

primary
#AFC740
secondary
#403576
accent
#4ADE64
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFC740

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

Preview Lab → · Contrast checker → · Palette generator →

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