#9BA421#9BA421

#9BA421 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 68.9% C 0.145 H 113.7°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#9BA421
RGBrgb(155, 164, 33)
HSLhsl(64, 66%, 39%)
HSVhsv(64, 80%, 64%)
CMYKcmyk(5.5%, 0%, 79.9%, 35.7%)
CIE-LABlab(64.67, -18.74, 60.90)
CIE-LCHlch(64.67, 63.72, 107.11°)
OKLaboklab(68.9% -0.0582 0.1325)
OKLCHoklch(68.9% 0.145 113.7)
XYZxyz(27.0684, 33.6299, 6.5039)
Luminance0.3363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA421 #2A21A4
analogous
#A46B21 #9BA421 #59A421
triadic
#9BA421 #219BA4 #A4219B
tetradic
#9BA421 #21A46B #2A21A4 #A42159
square
#9BA421 #21A46B #2A21A4 #A42159
split-complementary
#9BA421 #2159A4 #6B21A4
monochromatic
#3B3E0C #6B7117 #9BA421 #C9D52D #D6DF60

Accessibility & contrast

On white

2.72
#9BA421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#9BA421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA421
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA421#FFFFFF#000000##000000
##9BA4211.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B09E2E
Tritanopia (blue-blind)
#A69A8C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ba421;
/* rgb */ color: rgb(155, 164, 33);
/* oklch */ color: oklch(68.9% 0.145 113.7);
Tailwind
colors: {
  custom: {
    50: '#bcbe69',
    500: '#9ba421',
    950: '#000000',
  },
}
SCSS
$custom: #9ba421;
$custom-light: #bcbe69;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba421",
  "rgb": {
    "r": 155,
    "g": 164,
    "b": 33
  },
  "hsl": {
    "h": 64.122,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.689,
    "c": 0.14475,
    "h": 113.7
  },
  "luminance": 0.33629
}

Semantic roles & 50–950 ramp

primary
#9BA421
secondary
#645DC4
accent
#3EE94A
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA421

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

Preview Lab → · Contrast checker → · Palette generator →

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