#9BA12A#9BA12A

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

Color values

HEX#9BA12A
RGBrgb(155, 161, 42)
HSLhsl(63, 59%, 40%)
HSVhsv(63, 74%, 63%)
CMYKcmyk(3.7%, 0%, 73.9%, 36.9%)
CIE-LABlab(63.86, -16.83, 57.25)
CIE-LCHlch(63.86, 59.67, 106.38°)
OKLaboklab(68.27% -0.0521 0.1264)
OKLCHoklch(68.27% 0.137 112.4)
XYZxyz(26.6812, 32.6261, 7.0820)
Luminance0.3262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA12A #302AA1
analogous
#A16B2A #9BA12A #60A12A
triadic
#9BA12A #2A9BA1 #A12A9B
tetradic
#9BA12A #2AA16B #302AA1 #A12A60
square
#9BA12A #2AA16B #302AA1 #A12A60
split-complementary
#9BA12A #2A60A1 #6B2AA1
monochromatic
#3E4011 #6C701D #9BA12A #C5CC3C #D3D96D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA12A#FFFFFF#000000##000000
##9BA12A1.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)
#AD9912
Deuteranopia (green-blind)
#AE9C34
Tritanopia (blue-blind)
#A6978A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba12a;
/* rgb */ color: rgb(155, 161, 42);
/* oklch */ color: oklch(68.3% 0.137 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc6d',
    500: '#9ba12a',
    950: '#000000',
  },
}
SCSS
$custom: #9ba12a;
$custom-light: #bcbc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba12a",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 42
  },
  "hsl": {
    "h": 63.025,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.68265,
    "c": 0.13673,
    "h": 112.4
  },
  "luminance": 0.32625
}

Semantic roles & 50–950 ramp

primary
#9BA12A
secondary
#6C67C0
accent
#46E24E
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA12A

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

Preview Lab → · Contrast checker → · Palette generator →

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