#9BAA27#9BAA27

#9BAA27 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.3% C 0.148 H 116.2°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#9BAA27
RGBrgb(155, 170, 39)
HSLhsl(67, 63%, 41%)
HSVhsv(67, 77%, 67%)
CMYKcmyk(8.8%, 0%, 77.1%, 33.3%)
CIE-LABlab(66.42, -21.53, 60.65)
CIE-LCHlch(66.42, 64.36, 109.54°)
OKLaboklab(70.31% -0.0654 0.1331)
OKLCHoklch(70.31% 0.148 116.2)
XYZxyz(28.2593, 35.8649, 7.3530)
Luminance0.3586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAA27 #3627AA
analogous
#AA7727 #9BAA27 #59AA27
triadic
#9BAA27 #279BAA #AA279B
tetradic
#9BAA27 #27AA77 #3627AA #AA2759
square
#9BAA27 #27AA77 #3627AA #AA2759
split-complementary
#9BAA27 #2759AA #7727AA
monochromatic
#404610 #6E781C #9BAA27 #C1D23C #D1DE6E

Accessibility & contrast

On white

2.57
#9BAA27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#9BAA27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAA27
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAA27#FFFFFF#000000##000000
##9BAA271.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A102
Deuteranopia (green-blind)
#B5A233
Tritanopia (blue-blind)
#A5A092
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9baa27;
/* rgb */ color: rgb(155, 170, 39);
/* oklch */ color: oklch(70.3% 0.148 116.2);
Tailwind
colors: {
  custom: {
    50: '#bcc36c',
    500: '#9baa27',
    950: '#000000',
  },
}
SCSS
$custom: #9baa27;
$custom-light: #bcc36c;
$custom-dark: #000000;
JSON
{
  "hex": "#9baa27",
  "rgb": {
    "r": 155,
    "g": 170,
    "b": 39
  },
  "hsl": {
    "h": 66.87,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.70312,
    "c": 0.14828,
    "h": 116.2
  },
  "luminance": 0.35864
}

Semantic roles & 50–950 ramp

primary
#9BAA27
secondary
#7369C4
accent
#42E655
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BAA27

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

Preview Lab → · Contrast checker → · Palette generator →

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