#9BAF27#9BAF27

#9BAF27 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.5% C 0.154 H 118.0°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#9BAF27
RGBrgb(155, 175, 39)
HSLhsl(69, 64%, 42%)
HSVhsv(69, 78%, 69%)
CMYKcmyk(11.4%, 0%, 77.7%, 31.4%)
CIE-LABlab(67.85, -24.01, 61.97)
CIE-LCHlch(67.85, 66.46, 111.18°)
OKLaboklab(71.47% -0.0723 0.1359)
OKLCHoklch(71.47% 0.154 118)
XYZxyz(29.2144, 37.7753, 7.6714)
Luminance0.3777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAF27 #3B27AF
analogous
#AF7F27 #9BAF27 #57AF27
triadic
#9BAF27 #279BAF #AF279B
tetradic
#9BAF27 #27AF7F #3B27AF #AF2757
square
#9BAF27 #27AF7F #3B27AF #AF2757
split-complementary
#9BAF27 #2757AF #7F27AF
monochromatic
#424B11 #6F7D1C #9BAF27 #BED43F #CFDF71

Accessibility & contrast

On white

2.45
#9BAF27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#9BAF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAF27
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAF27#FFFFFF#000000##000000
##9BAF271.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#B9A634
Tritanopia (blue-blind)
#A5A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #9baf27;
/* rgb */ color: rgb(155, 175, 39);
/* oklch */ color: oklch(71.5% 0.154 118.0);
Tailwind
colors: {
  custom: {
    50: '#bcc66d',
    500: '#9baf27',
    950: '#000000',
  },
}
SCSS
$custom: #9baf27;
$custom-light: #bcc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9baf27",
  "rgb": {
    "r": 155,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 68.824,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71469,
    "c": 0.15389,
    "h": 118
  },
  "luminance": 0.37775
}

Semantic roles & 50–950 ramp

primary
#9BAF27
secondary
#796BC6
accent
#41E75A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #9BAF27

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

Preview Lab → · Contrast checker → · Palette generator →

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