#9BA128#9BA128

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

Color values

HEX#9BA128
RGBrgb(155, 161, 40)
HSLhsl(63, 60%, 39%)
HSVhsv(63, 75%, 63%)
CMYKcmyk(3.7%, 0%, 75.2%, 36.9%)
CIE-LABlab(63.85, -16.92, 57.93)
CIE-LCHlch(63.85, 60.35, 106.28°)
OKLaboklab(68.25% -0.0526 0.1275)
OKLCHoklch(68.25% 0.138 112.4)
XYZxyz(26.6463, 32.6121, 6.8982)
Luminance0.3261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA128 #2E28A1
analogous
#A16B28 #9BA128 #5FA128
triadic
#9BA128 #289BA1 #A1289B
tetradic
#9BA128 #28A16B #2E28A1 #A1285F
square
#9BA128 #28A16B #2E28A1 #A1285F
split-complementary
#9BA128 #285FA1 #6B28A1
monochromatic
#3D3F10 #6C701C #9BA128 #C6CE39 #D4DA6A

Accessibility & contrast

On white

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

On black

7.52
#9BA128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA128
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA128#FFFFFF#000000##000000
##9BA1281.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba128;
/* rgb */ color: rgb(155, 161, 40);
/* oklch */ color: oklch(68.3% 0.138 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc6c',
    500: '#9ba128',
    950: '#000000',
  },
}
SCSS
$custom: #9ba128;
$custom-light: #bcbc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba128",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 62.975,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68252,
    "c": 0.1379,
    "h": 112.4
  },
  "luminance": 0.32612
}

Semantic roles & 50–950 ramp

primary
#9BA128
secondary
#6965C0
accent
#44E34C
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA128

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

Preview Lab → · Contrast checker → · Palette generator →

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