#7F901C#7F901C

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

Color values

HEX#7F901C
RGBrgb(127, 144, 28)
HSLhsl(69, 67%, 34%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(11.8%, 0%, 80.6%, 43.5%)
CIE-LABlab(56.63, -21.02, 54.38)
CIE-LCHlch(56.63, 58.30, 111.14°)
OKLaboklab(61.89% -0.0634 0.1188)
OKLCHoklch(61.89% 0.135 118.1)
XYZxyz(18.9357, 24.5426, 4.8380)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F901C #2D1C90
analogous
#90671C #7F901C #45901C
triadic
#7F901C #1C7F90 #901C7F
tetradic
#7F901C #1C9067 #2D1C90 #901C45
square
#7F901C #1C9067 #2D1C90 #901C45
split-complementary
#7F901C #1C4590 #671C90
monochromatic
#252A08 #525D12 #7F901C #ACC326 #C7DC4A

Accessibility & contrast

On white

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

On black

5.91
#7F901C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F901C
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F901C#FFFFFF#000000##000000
##7F901C1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#87887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f901c;
/* rgb */ color: rgb(127, 144, 28);
/* oklch */ color: oklch(61.9% 0.135 118.1);
Tailwind
colors: {
  custom: {
    50: '#a8b064',
    500: '#7f901c',
    950: '#000000',
  },
}
SCSS
$custom: #7f901c;
$custom-light: #a8b064;
$custom-dark: #000000;
JSON
{
  "hex": "#7f901c",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 68.793,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61892,
    "c": 0.13463,
    "h": 118.1
  },
  "luminance": 0.24542
}

Semantic roles & 50–950 ramp

primary
#7F901C
secondary
#5B4ABE
accent
#3DEA57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F901C

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

Preview Lab → · Contrast checker → · Palette generator →

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