#9CA42F#9CA42F

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

Color values

HEX#9CA42F
RGBrgb(156, 164, 47)
HSLhsl(64, 55%, 41%)
HSVhsv(64, 71%, 64%)
CMYKcmyk(4.9%, 0%, 71.3%, 35.7%)
CIE-LABlab(64.82, -17.68, 56.40)
CIE-LCHlch(64.82, 59.10, 107.40°)
OKLaboklab(69.07% -0.0541 0.1255)
OKLCHoklch(69.07% 0.137 113.3)
XYZxyz(27.4997, 33.8247, 7.7690)
Luminance0.3382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA42F #372FA4
analogous
#A4722F #9CA42F #62A42F
triadic
#9CA42F #2F9CA4 #A42F9C
tetradic
#9CA42F #2FA472 #372FA4 #A42F62
square
#9CA42F #2FA472 #372FA4 #A42F62
split-complementary
#9CA42F #2F62A4 #722FA4
monochromatic
#424514 #6F7421 #9CA42F #C1CA46 #D1D876

Accessibility & contrast

On white

2.70
#9CA42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9CA42F#FFFFFF#000000##000000
##9CA42F1.002.707.767.76
#FFFFFF2.701.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#B09E38
Tritanopia (blue-blind)
#A69A8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ca42f;
/* rgb */ color: rgb(156, 164, 47);
/* oklch */ color: oklch(69.1% 0.137 113.3);
Tailwind
colors: {
  custom: {
    50: '#bcbe70',
    500: '#9ca42f',
    950: '#000000',
  },
}
SCSS
$custom: #9ca42f;
$custom-light: #bcbe70;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca42f",
  "rgb": {
    "r": 156,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 64.103,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69068,
    "c": 0.13661,
    "h": 113.3
  },
  "luminance": 0.33824
}

Semantic roles & 50–950 ramp

primary
#9CA42F
secondary
#756FC0
accent
#49DF53
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9CA42F

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

Preview Lab → · Contrast checker → · Palette generator →

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