#9BA117#9BA117

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

Color values

HEX#9BA117
RGBrgb(155, 161, 23)
HSLhsl(63, 75%, 36%)
HSVhsv(63, 86%, 63%)
CMYKcmyk(3.7%, 0%, 85.7%, 36.9%)
CIE-LABlab(63.77, -17.54, 62.74)
CIE-LCHlch(63.77, 65.14, 105.62°)
OKLaboklab(68.17% -0.0556 0.1347)
OKLCHoklch(68.17% 0.146 112.4)
XYZxyz(26.4180, 32.5208, 5.6960)
Luminance0.3252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA117 #1D17A1
analogous
#A16217 #9BA117 #56A117
triadic
#9BA117 #179BA1 #A1179B
tetradic
#9BA117 #17A162 #1D17A1 #A11756
square
#9BA117 #17A162 #1D17A1 #A11756
split-complementary
#9BA117 #1756A1 #6217A1
monochromatic
#343608 #676B0F #9BA117 #CFD71F #DFE64D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA117#FFFFFF#000000##000000
##9BA1171.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)
#AE9C26
Tritanopia (blue-blind)
#A69789
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba117;
/* rgb */ color: rgb(155, 161, 23);
/* oklch */ color: oklch(68.2% 0.146 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc65',
    500: '#9ba117',
    950: '#000000',
  },
}
SCSS
$custom: #9ba117;
$custom-light: #bcbc65;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba117",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 23
  },
  "hsl": {
    "h": 62.609,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.68169,
    "c": 0.14573,
    "h": 112.4
  },
  "luminance": 0.3252
}

Semantic roles & 50–950 ramp

primary
#9BA117
secondary
#524CC7
accent
#36F23E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131206
muted
#82817A

Preview Lab

Preview with #9BA117

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

Preview Lab → · Contrast checker → · Palette generator →

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