#7C8123#7C8123

#7C8123 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.114 H 112.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7C8123
RGBrgb(124, 129, 35)
HSLhsl(63, 57%, 32%)
HSVhsv(63, 73%, 51%)
CMYKcmyk(3.9%, 0%, 72.9%, 49.4%)
CIE-LABlab(51.96, -14.19, 47.50)
CIE-LCHlch(51.96, 49.57, 106.63°)
OKLaboklab(58.1% -0.0437 0.1056)
OKLCHoklch(58.1% 0.114 112.5)
XYZxyz(16.4663, 20.1073, 4.6035)
Luminance0.2011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8123 #282381
analogous
#815723 #7C8123 #4D8123
triadic
#7C8123 #237C81 #81237C
tetradic
#7C8123 #238157 #282381 #81234D
square
#7C8123 #238157 #282381 #81234D
split-complementary
#7C8123 #234D81 #572381
monochromatic
#1F2109 #4E5116 #7C8123 #AAB130 #C8CF4F

Accessibility & contrast

On white

4.18
#7C8123 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7C8123 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8123
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8123#FFFFFF#000000##000000
##7C81231.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B13
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#85796F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8123;
/* rgb */ color: rgb(124, 129, 35);
/* oklch */ color: oklch(58.1% 0.114 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a565',
    500: '#7c8123',
    950: '#000000',
  },
}
SCSS
$custom: #7c8123;
$custom-light: #a5a565;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8123",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 35
  },
  "hsl": {
    "h": 63.191,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58097,
    "c": 0.11426,
    "h": 112.5
  },
  "luminance": 0.20107
}

Semantic roles & 50–950 ramp

primary
#7C8123
secondary
#524DB3
accent
#47E14F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8123

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

Preview Lab → · Contrast checker → · Palette generator →

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