#7C8A28#7C8A28

#7C8A28 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.121 H 117.2°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7C8A28
RGBrgb(124, 138, 40)
HSLhsl(69, 55%, 35%)
HSVhsv(69, 71%, 54%)
CMYKcmyk(10.1%, 0%, 71%, 45.9%)
CIE-LABlab(54.67, -18.65, 48.21)
CIE-LCHlch(54.67, 51.69, 111.15°)
OKLaboklab(60.29% -0.0556 0.108)
OKLCHoklch(60.29% 0.121 117.2)
XYZxyz(17.7841, 22.6154, 5.4354)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A28 #36288A
analogous
#8A6728 #7C8A28 #4B8A28
triadic
#7C8A28 #287C8A #8A287C
tetradic
#7C8A28 #288A67 #36288A #8A284B
square
#7C8A28 #288A67 #36288A #8A284B
split-complementary
#7C8A28 #284B8A #67288A
monochromatic
#272B0C #515B1A #7C8A28 #A7B936 #BFD05D

Accessibility & contrast

On white

3.80
#7C8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7C8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A28
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A28#FFFFFF#000000##000000
##7C8A281.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938218
Deuteranopia (green-blind)
#928330
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a28;
/* rgb */ color: rgb(124, 138, 40);
/* oklch */ color: oklch(60.3% 0.121 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac68',
    500: '#7c8a28',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a28;
$custom-light: #a5ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a28",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 68.571,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.12144,
    "h": 117.2
  },
  "luminance": 0.22615
}

Semantic roles & 50–950 ramp

primary
#7C8A28
secondary
#6659B5
accent
#49DE5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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