#798141#798141

#798141 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.2% C 0.088 H 115.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798141
RGBrgb(121, 129, 65)
HSLhsl(68, 33%, 38%)
HSVhsv(68, 50%, 51%)
CMYKcmyk(6.2%, 0%, 49.6%, 49.4%)
CIE-LABlab(52.00, -13.13, 33.45)
CIE-LCHlch(52.00, 35.93, 111.43°)
OKLaboklab(58.17% -0.0373 0.0797)
OKLCHoklch(58.17% 0.088 115.1)
XYZxyz(16.6898, 20.1473, 8.0096)
Luminance0.2015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798141 #494181
analogous
#816941 #798141 #598141
triadic
#798141 #417981 #814179
tetradic
#798141 #418169 #494181 #814159
square
#798141 #418169 #494181 #814159
split-complementary
#798141 #415981 #694181
monochromatic
#2D3018 #53582C #798141 #9FAA56 #B6BE7E

Accessibility & contrast

On white

4.18
#798141 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#798141 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798141
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798141#FFFFFF#000000##000000
##7981411.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B3B
Deuteranopia (green-blind)
#887D44
Tritanopia (blue-blind)
#7F7B72
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798141;
/* rgb */ color: rgb(121, 129, 65);
/* oklch */ color: oklch(58.2% 0.088 115.1);
Tailwind
colors: {
  custom: {
    50: '#a1a577',
    500: '#798141',
    950: '#000000',
  },
}
SCSS
$custom: #798141;
$custom-light: #a1a577;
$custom-dark: #000000;
JSON
{
  "hex": "#798141",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 65
  },
  "hsl": {
    "h": 67.5,
    "s": 32.99,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58166,
    "c": 0.08798,
    "h": 115.1
  },
  "luminance": 0.20147
}

Semantic roles & 50–950 ramp

primary
#798141
secondary
#7B75A9
accent
#5FC96C
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798141

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

Preview Lab → · Contrast checker → · Palette generator →

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