#7F9018#7F9018

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

Color values

HEX#7F9018
RGBrgb(127, 144, 24)
HSLhsl(69, 71%, 33%)
HSVhsv(69, 83%, 56%)
CMYKcmyk(11.8%, 0%, 83.3%, 43.5%)
CIE-LABlab(56.61, -21.18, 55.52)
CIE-LCHlch(56.61, 59.42, 110.88°)
OKLaboklab(61.87% -0.0641 0.1205)
OKLCHoklch(61.87% 0.136 118)
XYZxyz(18.8910, 24.5247, 4.6025)
Luminance0.2452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9018 #291890
analogous
#906518 #7F9018 #439018
triadic
#7F9018 #187F90 #90187F
tetradic
#7F9018 #189065 #291890 #901843
square
#7F9018 #189065 #291890 #901843
split-complementary
#7F9018 #184390 #651890
monochromatic
#222707 #515C0F #7F9018 #ADC421 #C9E043

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F9018#FFFFFF#000000##000000
##7F90181.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)
#988825
Tritanopia (blue-blind)
#87887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f9018;
/* rgb */ color: rgb(127, 144, 24);
/* oklch */ color: oklch(61.9% 0.136 118.0);
Tailwind
colors: {
  custom: {
    50: '#a8b062',
    500: '#7f9018',
    950: '#000000',
  },
}
SCSS
$custom: #7f9018;
$custom-light: #a8b062;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9018",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 24
  },
  "hsl": {
    "h": 68.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61872,
    "c": 0.13649,
    "h": 118
  },
  "luminance": 0.24524
}

Semantic roles & 50–950 ramp

primary
#7F9018
secondary
#5543C0
accent
#3AEE53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F9018

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

Preview Lab → · Contrast checker → · Palette generator →

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