#9BA231#9BA231

#9BA231 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.5% C 0.133 H 112.9°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#9BA231
RGBrgb(155, 162, 49)
HSLhsl(64, 54%, 41%)
HSVhsv(64, 70%, 64%)
CMYKcmyk(4.3%, 0%, 69.8%, 36.5%)
CIE-LABlab(64.19, -16.98, 54.98)
CIE-LCHlch(64.19, 57.54, 107.16°)
OKLaboklab(68.54% -0.0519 0.1228)
OKLCHoklch(68.54% 0.133 112.9)
XYZxyz(26.9931, 33.0316, 7.8589)
Luminance0.3303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA231 #3831A2
analogous
#A27131 #9BA231 #63A231
triadic
#9BA231 #319BA2 #A2319B
tetradic
#9BA231 #31A271 #3831A2 #A23163
square
#9BA231 #31A271 #3831A2 #A23163
split-complementary
#9BA231 #3163A2 #7131A2
monochromatic
#414415 #6E7323 #9BA231 #C0C848 #D0D677

Accessibility & contrast

On white

2.76
#9BA231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#9BA231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA231
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA231#FFFFFF#000000##000000
##9BA2311.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#AE9D39
Tritanopia (blue-blind)
#A5988C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ba231;
/* rgb */ color: rgb(155, 162, 49);
/* oklch */ color: oklch(68.5% 0.133 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd70',
    500: '#9ba231',
    950: '#000000',
  },
}
SCSS
$custom: #9ba231;
$custom-light: #bcbd70;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba231",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 63.717,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68543,
    "c": 0.13335,
    "h": 112.9
  },
  "luminance": 0.33031
}

Semantic roles & 50–950 ramp

primary
#9BA231
secondary
#7571BE
accent
#4BDD54
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA231

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

Preview Lab → · Contrast checker → · Palette generator →

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