#9BA021#9BA021

#9BA021 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#9BA021
RGBrgb(155, 160, 33)
HSLhsl(62, 66%, 38%)
HSVhsv(62, 79%, 63%)
CMYKcmyk(3.1%, 0%, 79.4%, 37.3%)
CIE-LABlab(63.52, -16.70, 59.88)
CIE-LCHlch(63.52, 62.17, 105.58°)
OKLaboklab(67.98% -0.0526 0.1303)
OKLCHoklch(67.98% 0.141 112)
XYZxyz(26.3638, 32.2207, 6.2690)
Luminance0.3222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA021 #2621A0
analogous
#A06521 #9BA021 #5CA021
triadic
#9BA021 #219BA0 #A0219B
tetradic
#9BA021 #21A065 #2621A0 #A0215C
square
#9BA021 #21A065 #2621A0 #A0215C
split-complementary
#9BA021 #215CA0 #6521A0
monochromatic
#393B0C #6A6D17 #9BA021 #CCD32B #D9DE5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA021#FFFFFF#000000##000000
##9BA0211.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)
#AD9B2D
Tritanopia (blue-blind)
#A69689
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba021;
/* rgb */ color: rgb(155, 160, 33);
/* oklch */ color: oklch(68.0% 0.141 112.0);
Tailwind
colors: {
  custom: {
    50: '#bcbb68',
    500: '#9ba021',
    950: '#000000',
  },
}
SCSS
$custom: #9ba021;
$custom-light: #bcbb68;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba021",
  "rgb": {
    "r": 155,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 62.362,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.67984,
    "c": 0.14054,
    "h": 112
  },
  "luminance": 0.3222
}

Semantic roles & 50–950 ramp

primary
#9BA021
secondary
#5F5BC2
accent
#3FE946
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9BA021

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

Preview Lab → · Contrast checker → · Palette generator →

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