#9BA01F#9BA01F

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

Color values

HEX#9BA01F
RGBrgb(155, 160, 31)
HSLhsl(62, 68%, 37%)
HSVhsv(62, 81%, 63%)
CMYKcmyk(3.1%, 0%, 80.6%, 37.3%)
CIE-LABlab(63.52, -16.77, 60.46)
CIE-LCHlch(63.52, 62.74, 105.50°)
OKLaboklab(67.97% -0.0529 0.1312)
OKLCHoklch(67.97% 0.141 112)
XYZxyz(26.3366, 32.2098, 6.1258)
Luminance0.3221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA01F #241FA0
analogous
#A0651F #9BA01F #5AA01F
triadic
#9BA01F #1F9BA0 #A01F9B
tetradic
#9BA01F #1FA065 #241FA0 #A01F5A
square
#9BA01F #1FA065 #241FA0 #A01F5A
split-complementary
#9BA01F #1F5AA0 #651FA0
monochromatic
#38390B #696D15 #9BA01F #CDD329 #DADF5A

Accessibility & contrast

On white

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

On black

7.44
#9BA01F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA01F
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA01F#FFFFFF#000000##000000
##9BA01F1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba01f;
/* rgb */ color: rgb(155, 160, 31);
/* oklch */ color: oklch(68.0% 0.141 112.0);
Tailwind
colors: {
  custom: {
    50: '#bcbb68',
    500: '#9ba01f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba01f;
$custom-light: #bcbb68;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba01f",
  "rgb": {
    "r": 155,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 62.326,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.67974,
    "c": 0.14148,
    "h": 112
  },
  "luminance": 0.32209
}

Semantic roles & 50–950 ramp

primary
#9BA01F
secondary
#5C58C3
accent
#3DEA44
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9BA01F

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

Preview Lab → · Contrast checker → · Palette generator →

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