#9BA831#9BA831

#9BA831 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 69.9% C 0.140 H 115.5°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#9BA831
RGBrgb(155, 168, 49)
HSLhsl(67, 55%, 43%)
HSVhsv(67, 71%, 66%)
CMYKcmyk(7.7%, 0%, 70.8%, 34.1%)
CIE-LABlab(65.90, -20.03, 56.68)
CIE-LCHlch(65.90, 60.12, 109.46°)
OKLaboklab(69.92% -0.0604 0.1264)
OKLCHoklch(69.92% 0.14 115.5)
XYZxyz(28.0753, 35.1960, 8.2197)
Luminance0.3520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA831 #3E31A8
analogous
#A87A31 #9BA831 #5FA831
triadic
#9BA831 #319BA8 #A8319B
tetradic
#9BA831 #31A87A #3E31A8 #A8315F
square
#9BA831 #31A87A #3E31A8 #A8315F
split-complementary
#9BA831 #315FA8 #7A31A8
monochromatic
#444915 #6F7923 #9BA831 #BDCB4C #CED87B

Accessibility & contrast

On white

2.61
#9BA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#9BA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA831
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA831#FFFFFF#000000##000000
##9BA8311.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1D
Deuteranopia (green-blind)
#B3A13A
Tritanopia (blue-blind)
#A59E91
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9ba831;
/* rgb */ color: rgb(155, 168, 49);
/* oklch */ color: oklch(69.9% 0.140 115.5);
Tailwind
colors: {
  custom: {
    50: '#bcc171',
    500: '#9ba831',
    950: '#000000',
  },
}
SCSS
$custom: #9ba831;
$custom-light: #bcc171;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba831",
  "rgb": {
    "r": 155,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 66.555,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69917,
    "c": 0.14011,
    "h": 115.5
  },
  "luminance": 0.35196
}

Semantic roles & 50–950 ramp

primary
#9BA831
secondary
#7C74C1
accent
#4ADE5A
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA831

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

Preview Lab → · Contrast checker → · Palette generator →

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