#9BAB1C#9BAB1C

#9BAB1C is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.5% C 0.154 H 116.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#9BAB1C
RGBrgb(155, 171, 28)
HSLhsl(67, 72%, 39%)
HSVhsv(67, 84%, 67%)
CMYKcmyk(9.4%, 0%, 83.6%, 32.9%)
CIE-LABlab(66.66, -22.44, 63.98)
CIE-LCHlch(66.66, 67.80, 109.32°)
OKLaboklab(70.49% -0.0687 0.1383)
OKLCHoklch(70.49% 0.154 116.4)
XYZxyz(28.2909, 36.1786, 6.5912)
Luminance0.3618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAB1C #2C1CAB
analogous
#AB741C #9BAB1C #54AB1C
triadic
#9BAB1C #1C9BAB #AB1C9B
tetradic
#9BAB1C #1CAB74 #2C1CAB #AB1C54
square
#9BAB1C #1CAB74 #2C1CAB #AB1C54
split-complementary
#9BAB1C #1C54AB #741CAB
monochromatic
#3C420B #6B7613 #9BAB1C #C8DC28 #D5E45D

Accessibility & contrast

On white

2.55
#9BAB1C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#9BAB1C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAB1C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAB1C#FFFFFF#000000##000000
##9BAB1C1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A200
Deuteranopia (green-blind)
#B6A32C
Tritanopia (blue-blind)
#A5A192
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9bab1c;
/* rgb */ color: rgb(155, 171, 28);
/* oklch */ color: oklch(70.5% 0.154 116.4);
Tailwind
colors: {
  custom: {
    50: '#bcc368',
    500: '#9bab1c',
    950: '#000000',
  },
}
SCSS
$custom: #9bab1c;
$custom-light: #bcc368;
$custom-dark: #000000;
JSON
{
  "hex": "#9bab1c",
  "rgb": {
    "r": 155,
    "g": 171,
    "b": 28
  },
  "hsl": {
    "h": 66.713,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.7049,
    "c": 0.15441,
    "h": 116.4
  },
  "luminance": 0.36178
}

Semantic roles & 50–950 ramp

primary
#9BAB1C
secondary
#675AC9
accent
#39EF4E
background
#FCFCF6
surface
#F8F8EB
border
#D1D1C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BAB1C

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

Preview Lab → · Contrast checker → · Palette generator →

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