#9B9E1F#9B9E1F

#9B9E1F is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.5% C 0.139 H 111.0°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#9B9E1F
RGBrgb(155, 158, 31)
HSLhsl(61, 67%, 37%)
HSVhsv(61, 80%, 62%)
CMYKcmyk(1.9%, 0%, 80.4%, 38%)
CIE-LABlab(62.95, -15.74, 59.96)
CIE-LCHlch(62.95, 61.99, 104.71°)
OKLaboklab(67.52% -0.05 0.1301)
OKLCHoklch(67.52% 0.139 111)
XYZxyz(25.9927, 31.5219, 6.0112)
Luminance0.3152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9E1F #221F9E
analogous
#9E611F #9B9E1F #5C9E1F
triadic
#9B9E1F #1F9B9E #9E1F9B
tetradic
#9B9E1F #1F9E61 #221F9E #9E1F5C
square
#9B9E1F #1F9E61 #221F9E #9E1F5C
split-complementary
#9B9E1F #1F5C9E #611F9E
monochromatic
#37380B #696B15 #9B9E1F #CDD129 #DBDE59

Accessibility & contrast

On white

2.88
#9B9E1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#9B9E1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B9E1F
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9E1F#FFFFFF#000000##000000
##9B9E1F1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9700
Deuteranopia (green-blind)
#AC9A2B
Tritanopia (blue-blind)
#A69487
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9b9e1f;
/* rgb */ color: rgb(155, 158, 31);
/* oklch */ color: oklch(67.5% 0.139 111.0);
Tailwind
colors: {
  custom: {
    50: '#bcba67',
    500: '#9b9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9b9e1f;
$custom-light: #bcba67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9e1f",
  "rgb": {
    "r": 155,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 61.417,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.67518,
    "c": 0.13942,
    "h": 111
  },
  "luminance": 0.31521
}

Semantic roles & 50–950 ramp

primary
#9B9E1F
secondary
#5956C2
accent
#3EEA42
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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