#9CB128#9CB128

#9CB128 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.0% C 0.155 H 118.3°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#9CB128
RGBrgb(156, 177, 40)
HSLhsl(69, 63%, 43%)
HSVhsv(69, 77%, 69%)
CMYKcmyk(11.9%, 0%, 77.4%, 30.6%)
CIE-LABlab(68.51, -24.52, 62.29)
CIE-LCHlch(68.51, 66.94, 111.49°)
OKLaboklab(72.02% -0.0737 0.1367)
OKLCHoklch(72.02% 0.155 118.3)
XYZxyz(29.8161, 38.6657, 7.8996)
Luminance0.3866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CB128 #3D28B1
analogous
#B18128 #9CB128 #58B128
triadic
#9CB128 #289CB1 #B1289C
tetradic
#9CB128 #28B181 #3D28B1 #B12858
square
#9CB128 #28B181 #3D28B1 #B12858
split-complementary
#9CB128 #2858B1 #8128B1
monochromatic
#444D11 #707F1D #9CB128 #BED442 #CFE074

Accessibility & contrast

On white

2.40
#9CB128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#9CB128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CB128
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CB128#FFFFFF#000000##000000
##9CB1281.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#A6A798
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #9cb128;
/* rgb */ color: rgb(156, 177, 40);
/* oklch */ color: oklch(72.0% 0.155 118.3);
Tailwind
colors: {
  custom: {
    50: '#bdc86e',
    500: '#9cb128',
    950: '#000000',
  },
}
SCSS
$custom: #9cb128;
$custom-light: #bdc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#9cb128",
  "rgb": {
    "r": 156,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 69.197,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72015,
    "c": 0.15526,
    "h": 118.3
  },
  "luminance": 0.38665
}

Semantic roles & 50–950 ramp

primary
#9CB128
secondary
#7C6EC7
accent
#42E65B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9CB128

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

Preview Lab → · Contrast checker → · Palette generator →

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