#9BA540#9BA540

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

Color values

HEX#9BA540
RGBrgb(155, 165, 64)
HSLhsl(66, 44%, 45%)
HSVhsv(66, 61%, 65%)
CMYKcmyk(6.1%, 0%, 61.2%, 35.3%)
CIE-LABlab(65.16, -17.54, 49.72)
CIE-LCHlch(65.16, 52.73, 109.43°)
OKLaboklab(69.36% -0.0519 0.1141)
OKLCHoklch(69.36% 0.125 114.5)
XYZxyz(27.8987, 34.2495, 9.9906)
Luminance0.3425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA540 #4A40A5
analogous
#A57D40 #9BA540 #68A540
triadic
#9BA540 #409BA5 #A5409B
tetradic
#9BA540 #40A57D #4A40A5 #A54068
square
#9BA540 #40A57D #4A40A5 #A54068
split-complementary
#9BA540 #4068A5 #7D40A5
monochromatic
#484D1E #72792F #9BA540 #B8C261 #CCD38D

Accessibility & contrast

On white

2.68
#9BA540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#9BA540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA540
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA540#FFFFFF#000000##000000
##9BA5401.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba540;
/* rgb */ color: rgb(155, 165, 64);
/* oklch */ color: oklch(69.4% 0.125 114.5);
Tailwind
colors: {
  custom: {
    50: '#bbbf79',
    500: '#9ba540',
    950: '#000000',
  },
}
SCSS
$custom: #9ba540;
$custom-light: #bbbf79;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba540",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 65.941,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.6936,
    "c": 0.1253,
    "h": 114.5
  },
  "luminance": 0.34249
}

Semantic roles & 50–950 ramp

primary
#9BA540
secondary
#8983BE
accent
#54D461
background
#FBFBF7
surface
#F7F7EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9BA540

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

Preview Lab → · Contrast checker → · Palette generator →

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