#9BA017#9BA017

#9BA017 is a light, vivid yellow. Relative luminance 0.322; OKLCH L 67.9% C 0.145 H 112.0°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#9BA017
RGBrgb(155, 160, 23)
HSLhsl(62, 75%, 36%)
HSVhsv(62, 86%, 63%)
CMYKcmyk(3.1%, 0%, 85.6%, 37.3%)
CIE-LABlab(63.49, -17.02, 62.50)
CIE-LCHlch(63.49, 64.78, 105.24°)
OKLaboklab(67.94% -0.0542 0.1342)
OKLCHoklch(67.94% 0.145 112)
XYZxyz(26.2440, 32.1727, 5.6379)
Luminance0.3217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA017 #1C17A0
analogous
#A06017 #9BA017 #56A017
triadic
#9BA017 #179BA0 #A0179B
tetradic
#9BA017 #17A060 #1C17A0 #A01756
square
#9BA017 #17A060 #1C17A0 #A01756
split-complementary
#9BA017 #1756A0 #6017A0
monochromatic
#333508 #676A0F #9BA017 #CFD61F #E0E54C

Accessibility & contrast

On white

2.82
#9BA017 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#9BA017 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA017
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA017#FFFFFF#000000##000000
##9BA0171.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#AE9B26
Tritanopia (blue-blind)
#A69688
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba017;
/* rgb */ color: rgb(155, 160, 23);
/* oklch */ color: oklch(67.9% 0.145 112.0);
Tailwind
colors: {
  custom: {
    50: '#bcbb65',
    500: '#9ba017',
    950: '#000000',
  },
}
SCSS
$custom: #9ba017;
$custom-light: #bcbb65;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba017",
  "rgb": {
    "r": 155,
    "g": 160,
    "b": 23
  },
  "hsl": {
    "h": 62.19,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6794,
    "c": 0.14472,
    "h": 112
  },
  "luminance": 0.32172
}

Semantic roles & 50–950 ramp

primary
#9BA017
secondary
#504CC7
accent
#36F13D
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9BA017

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

Preview Lab → · Contrast checker → · Palette generator →

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