#9BA040#9BA040

#9BA040 is a light, moderate yellow. Relative luminance 0.325; OKLCH L 68.2% C 0.119 H 111.9°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#9BA040
RGBrgb(155, 160, 64)
HSLhsl(63, 43%, 44%)
HSVhsv(63, 60%, 63%)
CMYKcmyk(3.1%, 0%, 60%, 37.3%)
CIE-LABlab(63.74, -14.96, 48.17)
CIE-LCHlch(63.74, 50.44, 107.25°)
OKLaboklab(68.22% -0.0446 0.1108)
OKLCHoklch(68.22% 0.119 111.9)
XYZxyz(27.0145, 32.4809, 9.6959)
Luminance0.3248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA040 #4540A0
analogous
#A07540 #9BA040 #6BA040
triadic
#9BA040 #409BA0 #A0409B
tetradic
#9BA040 #40A075 #4540A0 #A0406B
square
#9BA040 #40A075 #4540A0 #A0406B
split-complementary
#9BA040 #406BA0 #7540A0
monochromatic
#46491D #71742F #9BA040 #BABF5E #CDD08A

Accessibility & contrast

On white

2.80
#9BA040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#9BA040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA040
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA040#FFFFFF#000000##000000
##9BA0401.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9935
Deuteranopia (green-blind)
#AC9C46
Tritanopia (blue-blind)
#A5978B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba040;
/* rgb */ color: rgb(155, 160, 64);
/* oklch */ color: oklch(68.2% 0.119 111.9);
Tailwind
colors: {
  custom: {
    50: '#bbbc79',
    500: '#9ba040',
    950: '#000000',
  },
}
SCSS
$custom: #9ba040;
$custom-light: #bbbc79;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba040",
  "rgb": {
    "r": 155,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 63.125,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68223,
    "c": 0.1194,
    "h": 111.9
  },
  "luminance": 0.3248
}

Semantic roles & 50–950 ramp

primary
#9BA040
secondary
#8481BB
accent
#55D35C
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121109
muted
#81807B

Preview Lab

Preview with #9BA040

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

Preview Lab → · Contrast checker → · Palette generator →

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