#798135#798135

#798135 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.100 H 114.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#798135
RGBrgb(121, 129, 53)
HSLhsl(66, 42%, 36%)
HSVhsv(66, 59%, 51%)
CMYKcmyk(6.2%, 0%, 58.9%, 49.4%)
CIE-LABlab(51.86, -14.28, 39.37)
CIE-LCHlch(51.86, 41.88, 109.93°)
OKLaboklab(58.01% -0.0418 0.0913)
OKLCHoklch(58.01% 0.1 114.6)
XYZxyz(16.3783, 20.0228, 6.3695)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798135 #3D3581
analogous
#816335 #798135 #538135
triadic
#798135 #357981 #813579
tetradic
#798135 #358163 #3D3581 #813553
square
#798135 #358163 #3D3581 #813553
split-complementary
#798135 #355381 #633581
monochromatic
#282A11 #505623 #798135 #A2AC47 #BAC36D

Accessibility & contrast

On white

4.20
#798135 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#798135 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798135
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798135#FFFFFF#000000##000000
##7981351.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B2D
Deuteranopia (green-blind)
#897C3A
Tritanopia (blue-blind)
#807A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798135;
/* rgb */ color: rgb(121, 129, 53);
/* oklch */ color: oklch(58.0% 0.100 114.6);
Tailwind
colors: {
  custom: {
    50: '#a2a56f',
    500: '#798135',
    950: '#000000',
  },
}
SCSS
$custom: #798135;
$custom-light: #a2a56f;
$custom-dark: #000000;
JSON
{
  "hex": "#798135",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 53
  },
  "hsl": {
    "h": 66.316,
    "s": 41.758,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58009,
    "c": 0.10038,
    "h": 114.6
  },
  "luminance": 0.20023
}

Semantic roles & 50–950 ramp

primary
#798135
secondary
#6E66AB
accent
#56D263
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #798135

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

Preview Lab → · Contrast checker → · Palette generator →

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