#798310#798310

#798310 is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.2% C 0.127 H 115.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#798310
RGBrgb(121, 131, 16)
HSLhsl(65, 78%, 29%)
HSVhsv(65, 88%, 51%)
CMYKcmyk(7.6%, 0%, 87.8%, 48.6%)
CIE-LABlab(52.21, -17.40, 53.61)
CIE-LCHlch(52.21, 56.37, 107.98°)
OKLaboklab(58.21% -0.054 0.1153)
OKLCHoklch(58.21% 0.127 115.1)
XYZxyz(16.0955, 20.3353, 3.5673)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798310 #1A1083
analogous
#835410 #798310 #408310
triadic
#798310 #107983 #831079
tetradic
#798310 #108354 #1A1083 #831040
square
#798310 #108354 #1A1083 #831040
split-complementary
#798310 #104083 #541083
monochromatic
#191B03 #474C09 #798310 #ABBA17 #D4E529

Accessibility & contrast

On white

4.14
#798310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#798310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798310
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798310#FFFFFF#000000##000000
##7983101.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8D7D1D
Tritanopia (blue-blind)
#827B6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798310;
/* rgb */ color: rgb(121, 131, 16);
/* oklch */ color: oklch(58.2% 0.127 115.1);
Tailwind
colors: {
  custom: {
    50: '#a3a65d',
    500: '#798310',
    950: '#000000',
  },
}
SCSS
$custom: #798310;
$custom-light: #a3a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#798310",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 65.217,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58211,
    "c": 0.12726,
    "h": 115.1
  },
  "luminance": 0.20335
}

Semantic roles & 50–950 ramp

primary
#798310
secondary
#4136B9
accent
#33F544
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798310

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

Preview Lab → · Contrast checker → · Palette generator →

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