#8CA228#8CA228

#8CA228 is a light, vivid yellow-green. Relative luminance 0.316; OKLCH L 67.3% C 0.144 H 119.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8CA228
RGBrgb(140, 162, 40)
HSLhsl(71, 60%, 40%)
HSVhsv(71, 75%, 64%)
CMYKcmyk(13.6%, 0%, 75.3%, 36.5%)
CIE-LABlab(62.99, -23.90, 56.72)
CIE-LCHlch(62.99, 61.55, 112.85°)
OKLaboklab(67.27% -0.0711 0.1254)
OKLCHoklch(67.27% 0.144 119.5)
XYZxyz(24.1190, 31.5694, 6.8300)
Luminance0.3157 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CA228 #3E28A2
analogous
#A27B28 #8CA228 #4FA228
triadic
#8CA228 #288CA2 #A2288C
tetradic
#8CA228 #28A27B #3E28A2 #A2284F
square
#8CA228 #28A27B #3E28A2 #A2284F
split-complementary
#8CA228 #284FA2 #7B28A2
monochromatic
#374010 #62711C #8CA228 #B3CE39 #C6DA6A

Accessibility & contrast

On white

2.87
#8CA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#8CA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CA228
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CA228#FFFFFF#000000##000000
##8CA2281.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD980D
Deuteranopia (green-blind)
#AA9933
Tritanopia (blue-blind)
#94998B
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #8ca228;
/* rgb */ color: rgb(140, 162, 40);
/* oklch */ color: oklch(67.3% 0.144 119.5);
Tailwind
colors: {
  custom: {
    50: '#b1bd6c',
    500: '#8ca228',
    950: '#000000',
  },
}
SCSS
$custom: #8ca228;
$custom-light: #b1bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8ca228",
  "rgb": {
    "r": 140,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 70.82,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.67275,
    "c": 0.14414,
    "h": 119.5
  },
  "luminance": 0.31569
}

Semantic roles & 50–950 ramp

primary
#8CA228
secondary
#7665C1
accent
#44E461
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111207
muted
#80817A

Preview Lab

Preview with #8CA228

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

Preview Lab → · Contrast checker → · Palette generator →

#8CA228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva