#9BA138#9BA138

#9BA138 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.4% C 0.127 H 112.4°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#9BA138
RGBrgb(155, 161, 56)
HSLhsl(63, 48%, 43%)
HSVhsv(63, 65%, 63%)
CMYKcmyk(3.7%, 0%, 65.2%, 36.9%)
CIE-LABlab(63.95, -16.04, 51.91)
CIE-LCHlch(63.95, 54.33, 107.17°)
OKLaboklab(68.37% -0.0485 0.1175)
OKLCHoklch(68.37% 0.127 112.4)
XYZxyz(26.9770, 32.7444, 8.6398)
Luminance0.3274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA138 #3E38A1
analogous
#A17338 #9BA138 #66A138
triadic
#9BA138 #389BA1 #A1389B
tetradic
#9BA138 #38A173 #3E38A1 #A13866
square
#9BA138 #38A173 #3E38A1 #A13866
split-complementary
#9BA138 #3866A1 #7338A1
monochromatic
#444618 #6F7428 #9BA138 #BDC353 #CED380

Accessibility & contrast

On white

2.78
#9BA138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#9BA138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA138
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA138#FFFFFF#000000##000000
##9BA1381.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A2A
Deuteranopia (green-blind)
#AD9C3F
Tritanopia (blue-blind)
#A5988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba138;
/* rgb */ color: rgb(155, 161, 56);
/* oklch */ color: oklch(68.4% 0.127 112.4);
Tailwind
colors: {
  custom: {
    50: '#bbbc74',
    500: '#9ba138',
    950: '#000000',
  },
}
SCSS
$custom: #9ba138;
$custom-light: #bbbc74;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba138",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 63.429,
    "s": 48.387,
    "l": 42.549
  },
  "oklch": {
    "l": 0.68373,
    "c": 0.12714,
    "h": 112.4
  },
  "luminance": 0.32744
}

Semantic roles & 50–950 ramp

primary
#9BA138
secondary
#7C78BC
accent
#50D858
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA138

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

Preview Lab → · Contrast checker → · Palette generator →

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