#7C8B1E#7C8B1E

#7C8B1E is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.129 H 117.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8B1E
RGBrgb(124, 139, 30)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(10.8%, 0%, 78.4%, 45.5%)
CIE-LABlab(54.91, -19.70, 52.10)
CIE-LCHlch(54.91, 55.70, 110.71°)
OKLaboklab(60.46% -0.0594 0.1144)
OKLCHoklch(60.46% 0.129 117.4)
XYZxyz(17.7796, 22.8443, 4.7008)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B1E #2D1E8B
analogous
#8B631E #7C8B1E #458B1E
triadic
#7C8B1E #1E7C8B #8B1E7C
tetradic
#7C8B1E #1E8B63 #2D1E8B #8B1E45
square
#7C8B1E #1E8B63 #2D1E8B #8B1E45
split-complementary
#7C8B1E #1E458B #631E8B
monochromatic
#222608 #4F5913 #7C8B1E #A9BD29 #C5D84B

Accessibility & contrast

On white

3.77
#7C8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7C8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B1E
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B1E#FFFFFF#000000##000000
##7C8B1E1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958301
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b1e;
/* rgb */ color: rgb(124, 139, 30);
/* oklch */ color: oklch(60.5% 0.129 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac64',
    500: '#7c8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b1e;
$custom-light: #a5ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b1e",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 68.257,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60458,
    "c": 0.1289,
    "h": 117.4
  },
  "luminance": 0.22844
}

Semantic roles & 50–950 ramp

primary
#7C8B1E
secondary
#5A4ABB
accent
#40E757
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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