#9BA331#9BA331

#9BA331 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.8% C 0.134 H 113.4°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#9BA331
RGBrgb(155, 163, 49)
HSLhsl(64, 54%, 42%)
HSVhsv(64, 70%, 64%)
CMYKcmyk(4.9%, 0%, 69.9%, 36.1%)
CIE-LABlab(64.47, -17.49, 55.26)
CIE-LCHlch(64.47, 57.97, 107.56°)
OKLaboklab(68.77% -0.0533 0.1234)
OKLCHoklch(68.77% 0.134 113.4)
XYZxyz(27.1699, 33.3853, 7.9179)
Luminance0.3338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA331 #3931A3
analogous
#A37231 #9BA331 #62A331
triadic
#9BA331 #319BA3 #A3319B
tetradic
#9BA331 #31A372 #3931A3 #A33162
square
#9BA331 #31A372 #3931A3 #A33162
split-complementary
#9BA331 #3162A3 #7231A3
monochromatic
#424515 #6E7423 #9BA331 #BFC849 #D0D678

Accessibility & contrast

On white

2.74
#9BA331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#9BA331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA331
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA331#FFFFFF#000000##000000
##9BA3311.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1F
Deuteranopia (green-blind)
#AF9E3A
Tritanopia (blue-blind)
#A5998C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ba331;
/* rgb */ color: rgb(155, 163, 49);
/* oklch */ color: oklch(68.8% 0.134 113.4);
Tailwind
colors: {
  custom: {
    50: '#bcbe70',
    500: '#9ba331',
    950: '#000000',
  },
}
SCSS
$custom: #9ba331;
$custom-light: #bcbe70;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba331",
  "rgb": {
    "r": 155,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 64.211,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68771,
    "c": 0.13446,
    "h": 113.4
  },
  "luminance": 0.33385
}

Semantic roles & 50–950 ramp

primary
#9BA331
secondary
#7771BF
accent
#4BDD55
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA331

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

Preview Lab → · Contrast checker → · Palette generator →

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