#9E9B2F#9E9B2F

#9E9B2F is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.2% C 0.127 H 107.8°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9E9B2F
RGBrgb(158, 155, 47)
HSLhsl(58, 54%, 40%)
HSVhsv(58, 70%, 62%)
CMYKcmyk(0%, 1.9%, 70.3%, 38%)
CIE-LABlab(62.44, -12.13, 54.10)
CIE-LCHlch(62.44, 55.45, 102.64°)
OKLaboklab(67.2% -0.0387 0.1206)
OKLCHoklch(67.2% 0.127 107.8)
XYZxyz(26.3360, 30.9179, 7.2692)
Luminance0.3092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9B2F #2F329E
analogous
#9E632F #9E9B2F #6A9E2F
triadic
#9E9B2F #2F9E9B #9B2F9E
tetradic
#9E9B2F #2F9E63 #2F329E #9E2F6A
square
#9E9B2F #2F9E63 #2F329E #9E2F6A
split-complementary
#9E9B2F #2F6A9E #632F9E
monochromatic
#403E13 #6F6D21 #9E9B2F #C7C443 #D5D272

Accessibility & contrast

On white

2.92
#9E9B2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#9E9B2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E9B2F
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9B2F#FFFFFF#000000##000000
##9E9B2F1.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8951E
Deuteranopia (green-blind)
#AA9937
Tritanopia (blue-blind)
#A99186
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e9b2f;
/* rgb */ color: rgb(158, 155, 47);
/* oklch */ color: oklch(67.2% 0.127 107.8);
Tailwind
colors: {
  custom: {
    50: '#beb86f',
    500: '#9e9b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9e9b2f;
$custom-light: #beb86f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9b2f",
  "rgb": {
    "r": 158,
    "g": 155,
    "b": 47
  },
  "hsl": {
    "h": 58.378,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.67202,
    "c": 0.1266,
    "h": 107.8
  },
  "luminance": 0.30917
}

Semantic roles & 50–950 ramp

primary
#9E9B2F
secondary
#6C6EBD
accent
#4EDE4A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #9E9B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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