#7F9028#7F9028

#7F9028 is a mid, vivid yellow. Relative luminance 0.246; OKLCH L 62.0% C 0.128 H 118.4°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7F9028
RGBrgb(127, 144, 40)
HSLhsl(70, 57%, 36%)
HSVhsv(70, 72%, 56%)
CMYKcmyk(11.8%, 0%, 72.2%, 43.5%)
CIE-LABlab(56.70, -20.43, 50.30)
CIE-LCHlch(56.70, 54.29, 112.11°)
OKLaboklab(61.97% -0.0607 0.1123)
OKLCHoklch(61.97% 0.128 118.4)
XYZxyz(19.1091, 24.6119, 5.7510)
Luminance0.2461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9028 #392890
analogous
#906D28 #7F9028 #4B9028
triadic
#7F9028 #287F90 #90287F
tetradic
#7F9028 #28906D #392890 #90284B
square
#7F9028 #28906D #392890 #90284B
split-complementary
#7F9028 #284B90 #6D2890
monochromatic
#2B300D #55601B #7F9028 #A9C035 #C0D360

Accessibility & contrast

On white

3.55
#7F9028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#7F9028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9028
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9028#FFFFFF#000000##000000
##7F90281.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8816
Deuteranopia (green-blind)
#988830
Tritanopia (blue-blind)
#87887C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f9028;
/* rgb */ color: rgb(127, 144, 40);
/* oklch */ color: oklch(62.0% 0.128 118.4);
Tailwind
colors: {
  custom: {
    50: '#a7b069',
    500: '#7f9028',
    950: '#000000',
  },
}
SCSS
$custom: #7f9028;
$custom-light: #a7b069;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9028",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 40
  },
  "hsl": {
    "h": 69.808,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61969,
    "c": 0.12764,
    "h": 118.4
  },
  "luminance": 0.24612
}

Semantic roles & 50–950 ramp

primary
#7F9028
secondary
#6B5CB8
accent
#48E061
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F9028

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

Preview Lab → · Contrast checker → · Palette generator →

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