#7FA255#7FA255

#7FA255 is a light, moderate yellow-green. Relative luminance 0.310; OKLCH L 66.8% C 0.112 H 129.1°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7FA255
RGBrgb(127, 162, 85)
HSLhsl(87, 31%, 48%)
HSVhsv(87, 48%, 64%)
CMYKcmyk(21.6%, 0%, 47.5%, 36.5%)
CIE-LABlab(62.51, -25.44, 36.01)
CIE-LCHlch(62.51, 44.09, 125.24°)
OKLaboklab(66.8% -0.0705 0.0868)
OKLCHoklch(66.8% 0.112 129.1)
XYZxyz(23.3122, 31.0082, 13.3495)
Luminance0.3101 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA255 #7855A2
analogous
#A29E55 #7FA255 #58A255
triadic
#7FA255 #557FA2 #A2557F
tetradic
#7FA255 #55A29E #7855A2 #A25558
square
#7FA255 #55A29E #7855A2 #A25558
split-complementary
#7FA255 #5558A2 #9E55A2
monochromatic
#40522B #607A40 #7FA255 #9DBA7B #BBCFA3

Accessibility & contrast

On white

2.92
#7FA255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#7FA255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA255
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA255#FFFFFF#000000##000000
##7FA2551.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8994F
Deuteranopia (green-blind)
#A39659
Tritanopia (blue-blind)
#829C90
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #7fa255;
/* rgb */ color: rgb(127, 162, 85);
/* oklch */ color: oklch(66.8% 0.112 129.1);
Tailwind
colors: {
  custom: {
    50: '#a6bd86',
    500: '#7fa255',
    950: '#000000',
  },
}
SCSS
$custom: #7fa255;
$custom-light: #a6bd86;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa255",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 85
  },
  "hsl": {
    "h": 87.273,
    "s": 31.174,
    "l": 48.431
  },
  "oklch": {
    "l": 0.66803,
    "c": 0.11182,
    "h": 129.1
  },
  "luminance": 0.31009
}

Semantic roles & 50–950 ramp

primary
#7FA255
secondary
#A897BC
accent
#60C78F
background
#FAFBF8
surface
#F4F6EF
border
#CED0CA
text
#0F120B
muted
#7F817C

Preview Lab

Preview with #7FA255

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

Preview Lab → · Contrast checker → · Palette generator →

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