#7F9012#7F9012

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

Color values

HEX#7F9012
RGBrgb(127, 144, 18)
HSLhsl(68, 78%, 32%)
HSVhsv(68, 88%, 56%)
CMYKcmyk(11.8%, 0%, 87.5%, 43.5%)
CIE-LABlab(56.59, -21.37, 56.99)
CIE-LCHlch(56.59, 60.87, 110.55°)
OKLaboklab(61.85% -0.065 0.1227)
OKLCHoklch(61.85% 0.139 117.9)
XYZxyz(18.8353, 24.5024, 4.3093)
Luminance0.2450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9012 #231290
analogous
#906212 #7F9012 #409012
triadic
#7F9012 #127F90 #90127F
tetradic
#7F9012 #129062 #231290 #901240
square
#7F9012 #129062 #231290 #901240
split-complementary
#7F9012 #124090 #621290
monochromatic
#1F2304 #4F5A0B #7F9012 #AFC619 #CEE636

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F9012#FFFFFF#000000##000000
##7F90121.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)
#9A8700
Deuteranopia (green-blind)
#998821
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f9012;
/* rgb */ color: rgb(127, 144, 18);
/* oklch */ color: oklch(61.8% 0.139 117.9);
Tailwind
colors: {
  custom: {
    50: '#a8b060',
    500: '#7f9012',
    950: '#000000',
  },
}
SCSS
$custom: #7f9012;
$custom-light: #a8b060;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9012",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 18
  },
  "hsl": {
    "h": 68.095,
    "s": 77.778,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61848,
    "c": 0.13883,
    "h": 117.9
  },
  "luminance": 0.24502
}

Semantic roles & 50–950 ramp

primary
#7F9012
secondary
#4C3AC4
accent
#34F44E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F9012

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

Preview Lab → · Contrast checker → · Palette generator →

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