#9CA831#9CA831

#9CA831 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.0% C 0.140 H 115.1°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#9CA831
RGBrgb(156, 168, 49)
HSLhsl(66, 55%, 43%)
HSVhsv(66, 71%, 66%)
CMYKcmyk(7.1%, 0%, 70.8%, 34.1%)
CIE-LABlab(65.98, -19.60, 56.78)
CIE-LCHlch(65.98, 60.07, 109.05°)
OKLaboklab(70% -0.0593 0.1266)
OKLCHoklch(70% 0.14 115.1)
XYZxyz(28.2681, 35.2954, 8.2287)
Luminance0.3529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA831 #3D31A8
analogous
#A87831 #9CA831 #61A831
triadic
#9CA831 #319CA8 #A8319C
tetradic
#9CA831 #31A878 #3D31A8 #A83161
square
#9CA831 #31A878 #3D31A8 #A83161
split-complementary
#9CA831 #3161A8 #7831A8
monochromatic
#444915 #707923 #9CA831 #BECB4C #CFD87B

Accessibility & contrast

On white

2.61
#9CA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#9CA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA831
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA831#FFFFFF#000000##000000
##9CA8311.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1D
Deuteranopia (green-blind)
#B3A13A
Tritanopia (blue-blind)
#A69E91
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9ca831;
/* rgb */ color: rgb(156, 168, 49);
/* oklch */ color: oklch(70.0% 0.140 115.1);
Tailwind
colors: {
  custom: {
    50: '#bcc171',
    500: '#9ca831',
    950: '#000000',
  },
}
SCSS
$custom: #9ca831;
$custom-light: #bcc171;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca831",
  "rgb": {
    "r": 156,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 66.05,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69998,
    "c": 0.13979,
    "h": 115.1
  },
  "luminance": 0.35295
}

Semantic roles & 50–950 ramp

primary
#9CA831
secondary
#7C74C1
accent
#4ADE59
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9CA831

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

Preview Lab → · Contrast checker → · Palette generator →

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