#9CA42A#9CA42A

#9CA42A is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.0% C 0.140 H 113.3°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#9CA42A
RGBrgb(156, 164, 42)
HSLhsl(64, 59%, 40%)
HSVhsv(64, 74%, 64%)
CMYKcmyk(4.9%, 0%, 74.4%, 35.7%)
CIE-LABlab(64.79, -17.93, 58.17)
CIE-LCHlch(64.79, 60.87, 107.13°)
OKLaboklab(69.03% -0.0553 0.1283)
OKLCHoklch(69.03% 0.14 113.3)
XYZxyz(27.4045, 33.7866, 7.2679)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA42A #322AA4
analogous
#A46F2A #9CA42A #5FA42A
triadic
#9CA42A #2A9CA4 #A42A9C
tetradic
#9CA42A #2AA46F #322AA4 #A42A5F
square
#9CA42A #2AA46F #322AA4 #A42A5F
split-complementary
#9CA42A #2A5FA4 #6F2AA4
monochromatic
#3F4311 #6E731E #9CA42A #C4CD3E #D3DA6E

Accessibility & contrast

On white

2.71
#9CA42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#9CA42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA42A
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA42A#FFFFFF#000000##000000
##9CA42A1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C10
Deuteranopia (green-blind)
#B09E34
Tritanopia (blue-blind)
#A79A8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ca42a;
/* rgb */ color: rgb(156, 164, 42);
/* oklch */ color: oklch(69.0% 0.140 113.3);
Tailwind
colors: {
  custom: {
    50: '#bdbe6d',
    500: '#9ca42a',
    950: '#000000',
  },
}
SCSS
$custom: #9ca42a;
$custom-light: #bdbe6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca42a",
  "rgb": {
    "r": 156,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 63.934,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.69034,
    "c": 0.13969,
    "h": 113.3
  },
  "luminance": 0.33786
}

Semantic roles & 50–950 ramp

primary
#9CA42A
secondary
#6F69C1
accent
#45E250
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9CA42A

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

Preview Lab → · Contrast checker → · Palette generator →

#9CA42A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva