#9BA545#9BA545

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

Color values

HEX#9BA545
RGBrgb(155, 165, 69)
HSLhsl(66, 41%, 46%)
HSVhsv(66, 58%, 65%)
CMYKcmyk(6.1%, 0%, 58.2%, 35.3%)
CIE-LABlab(65.21, -17.15, 47.51)
CIE-LCHlch(65.21, 50.51, 109.85°)
OKLaboklab(69.41% -0.0503 0.11)
OKLCHoklch(69.41% 0.121 114.6)
XYZxyz(28.0475, 34.3089, 10.7738)
Luminance0.3431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA545 #4F45A5
analogous
#A57F45 #9BA545 #6BA545
triadic
#9BA545 #459BA5 #A5459B
tetradic
#9BA545 #45A57F #4F45A5 #A5456B
square
#9BA545 #45A57F #4F45A5 #A5456B
split-complementary
#9BA545 #456BA5 #7F45A5
monochromatic
#4A4F21 #727A33 #9BA545 #B6C068 #CBD293

Accessibility & contrast

On white

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

On black

7.86
#9BA545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA545
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA545#FFFFFF#000000##000000
##9BA5451.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba545;
/* rgb */ color: rgb(155, 165, 69);
/* oklch */ color: oklch(69.4% 0.121 114.6);
Tailwind
colors: {
  custom: {
    50: '#bbbf7c',
    500: '#9ba545',
    950: '#000000',
  },
}
SCSS
$custom: #9ba545;
$custom-light: #bbbf7c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba545",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 66.25,
    "s": 41.026,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69413,
    "c": 0.12092,
    "h": 114.6
  },
  "luminance": 0.34309
}

Semantic roles & 50–950 ramp

primary
#9BA545
secondary
#8E88BD
accent
#57D164
background
#FBFBF7
surface
#F7F7EE
border
#D0D0C9
text
#12120A
muted
#81817C

Preview Lab

Preview with #9BA545

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

Preview Lab → · Contrast checker → · Palette generator →

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