#6A540F#6A540F

#6A540F is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.6% C 0.087 H 89.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6A540F
RGBrgb(106, 84, 15)
HSLhsl(45, 75%, 24%)
HSVhsv(45, 86%, 42%)
CMYKcmyk(0%, 20.8%, 85.8%, 58.4%)
CIE-LABlab(36.82, 1.92, 40.22)
CIE-LCHlch(36.82, 40.26, 87.27°)
OKLaboklab(45.61% 0.0007 0.0867)
OKLCHoklch(45.61% 0.087 89.5)
XYZxyz(9.2010, 9.4399, 1.7893)
Luminance0.0944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A540F #0F256A
analogous
#6A260F #6A540F #526A0F
triadic
#6A540F #0F6A54 #540F6A
tetradic
#6A540F #0F6A26 #0F256A #6A0F52
square
#6A540F #0F6A26 #0F256A #6A0F52
split-complementary
#6A540F #0F526A #260F6A
monochromatic
#1B1504 #342A07 #6A540F #A07E17 #D5A91E

Accessibility & contrast

On white

7.27
#6A540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6A540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A540F
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A540F#FFFFFF#000000##FFFFFF
##6A540F1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5301
Deuteranopia (green-blind)
#645913
Tritanopia (blue-blind)
#744C47
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a540f;
/* rgb */ color: rgb(106, 84, 15);
/* oklch */ color: oklch(45.6% 0.087 89.5);
Tailwind
colors: {
  custom: {
    50: '#988355',
    500: '#6a540f',
    950: '#000000',
  },
}
SCSS
$custom: #6a540f;
$custom-light: #988355;
$custom-dark: #000000;
JSON
{
  "hex": "#6a540f",
  "rgb": {
    "r": 106,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 45.495,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.08671,
    "h": 89.5
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#6A540F
secondary
#324DA2
accent
#63F236
background
#F9F8F5
surface
#F2EFE9
border
#CCCAC5
text
#0E0A03
muted
#7E7C78

Preview Lab

Preview with #6A540F

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

Preview Lab → · Contrast checker → · Palette generator →

#6A540F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva