#7F9015#7F9015

#7F9015 is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 61.9% C 0.138 H 118.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7F9015
RGBrgb(127, 144, 21)
HSLhsl(68, 75%, 32%)
HSVhsv(68, 85%, 56%)
CMYKcmyk(11.8%, 0%, 85.4%, 43.5%)
CIE-LABlab(56.60, -21.28, 56.29)
CIE-LCHlch(56.60, 60.18, 110.71°)
OKLaboklab(61.86% -0.0646 0.1216)
OKLCHoklch(61.86% 0.138 118)
XYZxyz(18.8615, 24.5129, 4.4472)
Luminance0.2451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9015 #261590
analogous
#906415 #7F9015 #419015
triadic
#7F9015 #157F90 #90157F
tetradic
#7F9015 #159064 #261590 #901541
square
#7F9015 #159064 #261590 #901541
split-complementary
#7F9015 #154190 #641590
monochromatic
#212505 #505B0D #7F9015 #AEC51D #CCE33D

Accessibility & contrast

On white

3.56
#7F9015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#7F9015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9015
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9015#FFFFFF#000000##000000
##7F90151.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#998823
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f9015;
/* rgb */ color: rgb(127, 144, 21);
/* oklch */ color: oklch(61.9% 0.138 118.0);
Tailwind
colors: {
  custom: {
    50: '#a8b061',
    500: '#7f9015',
    950: '#000000',
  },
}
SCSS
$custom: #7f9015;
$custom-light: #a8b061;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9015",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 21
  },
  "hsl": {
    "h": 68.293,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.13772,
    "h": 118
  },
  "luminance": 0.24513
}

Semantic roles & 50–950 ramp

primary
#7F9015
secondary
#513EC2
accent
#37F150
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F9015

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

Preview Lab → · Contrast checker → · Palette generator →

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