#7C8F1B#7C8F1B

#7C8F1B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.135 H 119.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7C8F1B
RGBrgb(124, 143, 27)
HSLhsl(70, 68%, 33%)
HSVhsv(70, 81%, 56%)
CMYKcmyk(13.3%, 0%, 81.1%, 43.9%)
CIE-LABlab(56.10, -21.87, 54.12)
CIE-LCHlch(56.10, 58.37, 112.01°)
OKLaboklab(61.41% -0.0656 0.1182)
OKLCHoklch(61.41% 0.135 119.1)
XYZxyz(18.3329, 24.0093, 4.7052)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F1B #2E1B8F
analogous
#8F681B #7C8F1B #428F1B
triadic
#7C8F1B #1B7C8F #8F1B7C
tetradic
#7C8F1B #1B8F68 #2E1B8F #8F1B42
square
#7C8F1B #1B8F68 #2E1B8F #8F1B42
split-complementary
#7C8F1B #1B428F #681B8F
monochromatic
#232808 #4F5C11 #7C8F1B #A9C225 #C4DC48

Accessibility & contrast

On white

3.62
#7C8F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7C8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F1B
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F1B#FFFFFF#000000##000000
##7C8F1B1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f1b;
/* rgb */ color: rgb(124, 143, 27);
/* oklch */ color: oklch(61.4% 0.135 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7c8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f1b;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f1b",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 69.828,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61407,
    "c": 0.13516,
    "h": 119.1
  },
  "luminance": 0.24009
}

Semantic roles & 50–950 ramp

primary
#7C8F1B
secondary
#5B48BE
accent
#3DEB59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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