#9CA540#9CA540

#9CA540 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.4% C 0.125 H 114.0°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#9CA540
RGBrgb(156, 165, 64)
HSLhsl(65, 44%, 45%)
HSVhsv(65, 61%, 65%)
CMYKcmyk(5.5%, 0%, 61.2%, 35.3%)
CIE-LABlab(65.24, -17.11, 49.83)
CIE-LCHlch(65.24, 52.69, 108.95°)
OKLaboklab(69.44% -0.0508 0.1143)
OKLCHoklch(69.44% 0.125 114)
XYZxyz(28.0915, 34.3488, 9.9997)
Luminance0.3435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA540 #4940A5
analogous
#A57C40 #9CA540 #69A540
triadic
#9CA540 #409CA5 #A5409C
tetradic
#9CA540 #40A57C #4940A5 #A54069
square
#9CA540 #40A57C #4940A5 #A54069
split-complementary
#9CA540 #4069A5 #7C40A5
monochromatic
#494D1E #72792F #9CA540 #B9C261 #CCD38D

Accessibility & contrast

On white

2.67
#9CA540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#9CA540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA540
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA540#FFFFFF#000000##000000
##9CA5401.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#B09F46
Tritanopia (blue-blind)
#A69C90
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ca540;
/* rgb */ color: rgb(156, 165, 64);
/* oklch */ color: oklch(69.4% 0.125 114.0);
Tailwind
colors: {
  custom: {
    50: '#bcbf79',
    500: '#9ca540',
    950: '#000000',
  },
}
SCSS
$custom: #9ca540;
$custom-light: #bcbf79;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca540",
  "rgb": {
    "r": 156,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 65.347,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69443,
    "c": 0.12503,
    "h": 114
  },
  "luminance": 0.34348
}

Semantic roles & 50–950 ramp

primary
#9CA540
secondary
#8883BE
accent
#54D45F
background
#FBFBF7
surface
#F7F7EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9CA540

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

Preview Lab → · Contrast checker → · Palette generator →

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