Skip to content

#838310

a dark, electric yellow · warm · closest name: Olive

RGB
131, 131, 16
HSL
60°, 78%, 29%
CMYK
0, 0, 88, 49
Luminance
0.2110

At a glance

Every number on this page in one read: what #838310 is made of, how bright it looks, and which way it leans.

Hex
#838310
Hue
60°
yellow
Saturation
78%
electric
Lightness
29%
dark
Brightness
51%
HSV value
Perceived
48%
weighted brightness
Luminance
0.2110
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
5.22:1
Closest name
Olive
ΔE2000 1.3
Where it sits
Hue60° of 360°
Saturation78%
Lightness29%
Temperature
Warm ← → Cool25% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#838310
RGBrgb(131, 131, 16)
HSLhsl(60, 78%, 29%)
CMYKcmyk(0%, 0%, 88%, 49%)
LABlab(53.0 -12.8 54.6)
LCHlch(53.0 56.1 103.2)
OKLCHoklch(0.591 0.124 109.7)
Decimal8618768
Display P3color(display-p3 0.514 0.514 0.063)

Copy-ready code

/* CSS */
color: #838310;
background-color: #838310;
/* Tailwind (arbitrary) */
class="text-[#838310] bg-[#838310]"
/* SCSS */
$brand: #838310;
/* SwiftUI */
Color(red: 0.514, green: 0.514, blue: 0.063)
/* Android */
Color.parseColor("#838310")
/* Flutter */
Color(0xFF838310)
/* Python / OpenCV (BGR) */
(16, 131, 131)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #838310 · 5.22:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.02:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.22:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #838310 as text scores 4.02:1 on white and 5.22:1 on black.

Accessibility — WCAG contrast

Aa
#838310 on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#838310 on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8E7D00
deuteranopia · #90801D
tritanopia · #8D7A6F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #838310 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCFCF3
#F9F9E6
#F5F5C7
#F3F39B
#EDED69
#E7E737
#DADA1B
#B6B616
#838310
#696911
#42420B
Base = 800Lightest = 50 · #FCFCF3Darkest = 950 · #42420B
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F9E6;
  --brand-200: #F5F5C7;
  --brand-300: #F3F39B;
  --brand-400: #EDED69;
  --brand-500: #E7E737;
  --brand-600: #DADA1B;
  --brand-700: #B6B616;
  --brand-800: #838310;
  --brand-900: #696911;
  --brand-950: #42420B;
  --brand: #838310;
  --brand-ink: #000000;
}

Colors that work with #838310

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EDEDC0
Hairlines and dividers
Muted text#9B9B4B
Captions on the surface
Accent#0D2B86
Second voice, not a rival
Dark variant#72720E
Hover, pressed, headers
Light variant#FCFCE8
Selected rows, tints
Dark surface#242414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #838310

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#101083
Analogous left#834910
Analogous right#498310
Split-complement 1#104983
Split-complement 2#491083
Triadic 1#108383
Triadic 2#831083
Tetradic#108349

RGB percentages

Red51.4%
Green51.4%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow87.8%
Key (black)48.6%

Color previews

#838310 text on a black background

contrast 5.22:1

Card sample

#838310 text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #838310;
Background color
Panel with #838310 background
background-color: #838310;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #838310;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(131, 131, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(131, 131, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #838310;
background: linear-gradient(135deg, #838310, #368310);

Monochromatic scale

Palettes built from #838310

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#838310 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#838310, answered

What color is #838310?

#838310 is a dark electric yellow, closest to Olive (ΔE2000 1.3). It sits at 60° on the hue wheel with 78% saturation and 29% lightness, which reads as warm.

What is the RGB value of #838310?

rgb(131, 131, 16) — 131 red, 131 green and 16 blue out of 255, or 51.4% / 51.4% / 6.3% by channel.

Is #838310 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2110 and perceived brightness is 48%, so black text on it reaches 5.22:1.

Should I use black or white text on #838310?

Black. It scores 5.22:1 against #838310, versus 4.02:1 for white — AA at any size.

What is the complementary color of #838310?

#101083 sits directly opposite on the wheel. Softer options are the split-complements #104983 and #491083, which give the same contrast with far less vibration.

What colors go well with #838310?

For interface work: #FAFAF4 as the surface, #EDEDC0 for borders, #9B9B4B for secondary text, #0D2B86 as an accent and #72720E for hover and pressed states. For a palette, the analogous pair #834910 and #498310 stays calm, while #101083 is the loudest partner.

What is #838310 in CMYK for printing?

cmyk(0%, 0%, 88%, 49%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #838310 warm or cool?

Warm — it scores 25 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #835910; nudged cooler, #59840F.

Work with #838310 in the Color Lab