#798148#798148

#798148 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.3% C 0.080 H 115.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#798148
RGBrgb(121, 129, 72)
HSLhsl(68, 28%, 39%)
HSVhsv(68, 44%, 51%)
CMYKcmyk(6.2%, 0%, 44.2%, 49.4%)
CIE-LABlab(52.10, -12.35, 29.83)
CIE-LCHlch(52.10, 32.28, 112.48°)
OKLaboklab(58.28% -0.0344 0.0722)
OKLCHoklch(58.28% 0.08 115.5)
XYZxyz(16.9053, 20.2335, 9.1445)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798148 #504881
analogous
#816D48 #798148 #5D8148
triadic
#798148 #487981 #814879
tetradic
#798148 #48816D #504881 #81485D
square
#798148 #48816D #504881 #81485D
split-complementary
#798148 #485D81 #6D4881
monochromatic
#2F321C #545A32 #798148 #9CA660 #B5BC87

Accessibility & contrast

On white

4.16
#798148 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#798148 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798148
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798148#FFFFFF#000000##000000
##7981481.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#887C43
Deuteranopia (green-blind)
#887D4B
Tritanopia (blue-blind)
#7F7B73
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798148;
/* rgb */ color: rgb(121, 129, 72);
/* oklch */ color: oklch(58.3% 0.080 115.5);
Tailwind
colors: {
  custom: {
    50: '#a1a57c',
    500: '#798148',
    950: '#000000',
  },
}
SCSS
$custom: #798148;
$custom-light: #a1a57c;
$custom-dark: #000000;
JSON
{
  "hex": "#798148",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 72
  },
  "hsl": {
    "h": 68.421,
    "s": 28.358,
    "l": 39.412
  },
  "oklch": {
    "l": 0.58275,
    "c": 0.07994,
    "h": 115.5
  },
  "luminance": 0.20233
}

Semantic roles & 50–950 ramp

primary
#798148
secondary
#837DA8
accent
#63C571
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798148

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

Preview Lab → · Contrast checker → · Palette generator →

#798148 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva