#9BA118#9BA118

#9BA118 is a light, vivid yellow. Relative luminance 0.325; OKLCH L 68.2% C 0.145 H 112.4°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#9BA118
RGBrgb(155, 161, 24)
HSLhsl(63, 74%, 36%)
HSVhsv(63, 85%, 63%)
CMYKcmyk(3.7%, 0%, 85.1%, 36.9%)
CIE-LABlab(63.77, -17.51, 62.51)
CIE-LCHlch(63.77, 64.91, 105.65°)
OKLaboklab(68.17% -0.0554 0.1344)
OKLCHoklch(68.17% 0.145 112.4)
XYZxyz(26.4282, 32.5249, 5.7497)
Luminance0.3252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA118 #1E18A1
analogous
#A16318 #9BA118 #57A118
triadic
#9BA118 #189BA1 #A1189B
tetradic
#9BA118 #18A163 #1E18A1 #A11857
square
#9BA118 #18A163 #1E18A1 #A11857
split-complementary
#9BA118 #1857A1 #6318A1
monochromatic
#343608 #686C10 #9BA118 #CED620 #DEE54F

Accessibility & contrast

On white

2.80
#9BA118 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#9BA118 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA118
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA118#FFFFFF#000000##000000
##9BA1181.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9900
Deuteranopia (green-blind)
#AE9C27
Tritanopia (blue-blind)
#A69789
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba118;
/* rgb */ color: rgb(155, 161, 24);
/* oklch */ color: oklch(68.2% 0.145 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc65',
    500: '#9ba118',
    950: '#000000',
  },
}
SCSS
$custom: #9ba118;
$custom-light: #bcbc65;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba118",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 24
  },
  "hsl": {
    "h": 62.628,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.68172,
    "c": 0.14537,
    "h": 112.4
  },
  "luminance": 0.32524
}

Semantic roles & 50–950 ramp

primary
#9BA118
secondary
#534EC7
accent
#37F13F
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131206
muted
#82817A

Preview Lab

Preview with #9BA118

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

Preview Lab → · Contrast checker → · Palette generator →

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