#7F9121#7F9121

#7F9121 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.2% C 0.133 H 118.6°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7F9121
RGBrgb(127, 145, 33)
HSLhsl(70, 63%, 35%)
HSVhsv(70, 77%, 57%)
CMYKcmyk(12.4%, 0%, 77.2%, 43.1%)
CIE-LABlab(56.95, -21.31, 53.07)
CIE-LCHlch(56.95, 57.19, 111.88°)
OKLaboklab(62.16% -0.0638 0.1169)
OKLCHoklch(62.16% 0.133 118.6)
XYZxyz(19.1527, 24.8728, 5.2305)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9121 #332191
analogous
#916B21 #7F9121 #479121
triadic
#7F9121 #217F91 #91217F
tetradic
#7F9121 #21916B #332191 #912147
square
#7F9121 #21916B #332191 #912147
split-complementary
#7F9121 #214791 #6B2191
monochromatic
#282D0A #535F16 #7F9121 #ABC32C #C3D854

Accessibility & contrast

On white

3.51
#7F9121 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#7F9121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9121
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9121#FFFFFF#000000##000000
##7F91211.003.515.975.97
#FFFFFF3.511.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8905
Deuteranopia (green-blind)
#99892B
Tritanopia (blue-blind)
#87897C
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7f9121;
/* rgb */ color: rgb(127, 145, 33);
/* oklch */ color: oklch(62.2% 0.133 118.6);
Tailwind
colors: {
  custom: {
    50: '#a7b166',
    500: '#7f9121',
    950: '#000000',
  },
}
SCSS
$custom: #7f9121;
$custom-light: #a7b166;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9121",
  "rgb": {
    "r": 127,
    "g": 145,
    "b": 33
  },
  "hsl": {
    "h": 69.643,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62161,
    "c": 0.13316,
    "h": 118.6
  },
  "luminance": 0.24873
}

Semantic roles & 50–950 ramp

primary
#7F9121
secondary
#6352BC
accent
#42E65C
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F9121

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

Preview Lab → · Contrast checker → · Palette generator →

#7F9121 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva