#9CA42B#9CA42B

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

Color values

HEX#9CA42B
RGBrgb(156, 164, 43)
HSLhsl(64, 58%, 41%)
HSVhsv(64, 74%, 64%)
CMYKcmyk(4.9%, 0%, 73.8%, 35.7%)
CIE-LABlab(64.80, -17.88, 57.82)
CIE-LCHlch(64.80, 60.53, 107.18°)
OKLaboklab(69.04% -0.055 0.1278)
OKLCHoklch(69.04% 0.139 113.3)
XYZxyz(27.4226, 33.7938, 7.3633)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA42B #332BA4
analogous
#A46F2B #9CA42B #5FA42B
triadic
#9CA42B #2B9CA4 #A42B9C
tetradic
#9CA42B #2BA46F #332BA4 #A42B5F
square
#9CA42B #2BA46F #332BA4 #A42B5F
split-complementary
#9CA42B #2B5FA4 #6F2BA4
monochromatic
#404312 #6E741E #9CA42B #C3CD3F #D3D970

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9CA42B#FFFFFF#000000##000000
##9CA42B1.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)
#B09C12
Deuteranopia (green-blind)
#B09E35
Tritanopia (blue-blind)
#A79A8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ca42b;
/* rgb */ color: rgb(156, 164, 43);
/* oklch */ color: oklch(69.0% 0.139 113.3);
Tailwind
colors: {
  custom: {
    50: '#bdbe6e',
    500: '#9ca42b',
    950: '#000000',
  },
}
SCSS
$custom: #9ca42b;
$custom-light: #bdbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca42b",
  "rgb": {
    "r": 156,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 63.967,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69041,
    "c": 0.13911,
    "h": 113.3
  },
  "luminance": 0.33793
}

Semantic roles & 50–950 ramp

primary
#9CA42B
secondary
#706AC1
accent
#46E250
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9CA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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