#9BA71C#9BA71C

#9BA71C is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.6% C 0.150 H 114.9°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#9BA71C
RGBrgb(155, 167, 28)
HSLhsl(65, 71%, 38%)
HSVhsv(65, 83%, 65%)
CMYKcmyk(7.2%, 0%, 83.2%, 34.5%)
CIE-LABlab(65.51, -20.43, 63.00)
CIE-LCHlch(65.51, 66.23, 107.97°)
OKLaboklab(69.57% -0.0632 0.1361)
OKLCHoklch(69.57% 0.15 114.9)
XYZxyz(27.5467, 34.6903, 6.3432)
Luminance0.3469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA71C #281CA7
analogous
#A76D1C #9BA71C #55A71C
triadic
#9BA71C #1C9BA7 #A71C9B
tetradic
#9BA71C #1CA76D #281CA7 #A71C55
square
#9BA71C #1CA76D #281CA7 #A71C55
split-complementary
#9BA71C #1C55A7 #6D1CA7
monochromatic
#3A3E0A #6A7313 #9BA71C #CBDB26 #D7E35A

Accessibility & contrast

On white

2.65
#9BA71C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#9BA71C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA71C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA71C#FFFFFF#000000##000000
##9BA71C1.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49E00
Deuteranopia (green-blind)
#B3A02B
Tritanopia (blue-blind)
#A69D8E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9ba71c;
/* rgb */ color: rgb(155, 167, 28);
/* oklch */ color: oklch(69.6% 0.150 114.9);
Tailwind
colors: {
  custom: {
    50: '#bcc167',
    500: '#9ba71c',
    950: '#000000',
  },
}
SCSS
$custom: #9ba71c;
$custom-light: #bcc167;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba71c",
  "rgb": {
    "r": 155,
    "g": 167,
    "b": 28
  },
  "hsl": {
    "h": 65.18,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.69566,
    "c": 0.1501,
    "h": 114.9
  },
  "luminance": 0.3469
}

Semantic roles & 50–950 ramp

primary
#9BA71C
secondary
#6158C7
accent
#3AEE49
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA71C

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

Preview Lab → · Contrast checker → · Palette generator →

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