#7FA01F#7FA01F

#7FA01F is a light, vivid yellow-green. Relative luminance 0.298; OKLCH L 65.8% C 0.152 H 123.7°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7FA01F
RGBrgb(127, 160, 31)
HSLhsl(75, 68%, 37%)
HSVhsv(75, 81%, 63%)
CMYKcmyk(20.6%, 0%, 80.6%, 37.3%)
CIE-LABlab(61.44, -28.81, 57.82)
CIE-LCHlch(61.44, 64.60, 116.48°)
OKLaboklab(65.78% -0.0845 0.1266)
OKLCHoklch(65.78% 0.152 123.7)
XYZxyz(21.5708, 29.7524, 5.9024)
Luminance0.2975 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA01F #401FA0
analogous
#A0811F #7FA01F #3EA01F
triadic
#7FA01F #1F7FA0 #A01F7F
tetradic
#7FA01F #1FA081 #401FA0 #A01F3E
square
#7FA01F #1FA081 #401FA0 #A01F3E
split-complementary
#7FA01F #1F3EA0 #811FA0
monochromatic
#2E390B #566D15 #7FA01F #A8D329 #BDDF5A

Accessibility & contrast

On white

3.02
#7FA01F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#7FA01F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7FA01F
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA01F#FFFFFF#000000##000000
##7FA01F1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9500
Deuteranopia (green-blind)
#A5942D
Tritanopia (blue-blind)
#869889
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #7fa01f;
/* rgb */ color: rgb(127, 160, 31);
/* oklch */ color: oklch(65.8% 0.152 123.7);
Tailwind
colors: {
  custom: {
    50: '#a8bc67',
    500: '#7fa01f',
    950: '#000000',
  },
}
SCSS
$custom: #7fa01f;
$custom-light: #a8bc67;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa01f",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 75.349,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.65781,
    "c": 0.15219,
    "h": 123.7
  },
  "luminance": 0.29753
}

Semantic roles & 50–950 ramp

primary
#7FA01F
secondary
#7358C3
accent
#3DEA6A
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA01F

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

Preview Lab → · Contrast checker → · Palette generator →

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