#9BA12C#9BA12C

#9BA12C is a light, vivid yellow. Relative luminance 0.326; OKLCH L 68.3% C 0.136 H 112.4°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#9BA12C
RGBrgb(155, 161, 44)
HSLhsl(63, 57%, 40%)
HSVhsv(63, 73%, 63%)
CMYKcmyk(3.7%, 0%, 72.7%, 36.9%)
CIE-LABlab(63.87, -16.73, 56.55)
CIE-LCHlch(63.87, 58.97, 106.48°)
OKLaboklab(68.28% -0.0517 0.1253)
OKLCHoklch(68.28% 0.136 112.4)
XYZxyz(26.7179, 32.6408, 7.2752)
Luminance0.3264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA12C #322CA1
analogous
#A16C2C #9BA12C #60A12C
triadic
#9BA12C #2C9BA1 #A12C9B
tetradic
#9BA12C #2CA16C #322CA1 #A12C60
square
#9BA12C #2CA16C #322CA1 #A12C60
split-complementary
#9BA12C #2C60A1 #6C2CA1
monochromatic
#3E4112 #6D711F #9BA12C #C4CB40 #D2D870

Accessibility & contrast

On white

2.79
#9BA12C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#9BA12C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA12C
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA12C#FFFFFF#000000##000000
##9BA12C1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9916
Deuteranopia (green-blind)
#AE9C35
Tritanopia (blue-blind)
#A6978A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba12c;
/* rgb */ color: rgb(155, 161, 44);
/* oklch */ color: oklch(68.3% 0.136 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc6e',
    500: '#9ba12c',
    950: '#000000',
  },
}
SCSS
$custom: #9ba12c;
$custom-light: #bcbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba12c",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 63.077,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.68278,
    "c": 0.13551,
    "h": 112.4
  },
  "luminance": 0.3264
}

Semantic roles & 50–950 ramp

primary
#9BA12C
secondary
#6E6ABF
accent
#47E04F
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA12C

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

Preview Lab → · Contrast checker → · Palette generator →

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