#C8A22F#C8A22F

#C8A22F is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.7% C 0.134 H 89.5°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#C8A22F
RGBrgb(200, 162, 47)
HSLhsl(45, 62%, 48%)
HSVhsv(45, 77%, 78%)
CMYKcmyk(0%, 19%, 76.5%, 21.6%)
CIE-LABlab(68.26, 2.72, 61.08)
CIE-LCHlch(68.26, 61.14, 87.45°)
OKLaboklab(72.75% 0.0011 0.1337)
OKLCHoklch(72.75% 0.134 89.5)
XYZxyz(37.2551, 38.3277, 8.1245)
Luminance0.3832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8A22F #2F55C8
analogous
#C8552F #C8A22F #A1C82F
triadic
#C8A22F #2FC8A2 #A22FC8
tetradic
#C8A22F #2FC855 #2F55C8 #C82FA1
square
#C8A22F #2FC855 #2F55C8 #C82FA1
split-complementary
#C8A22F #2FA1C8 #552FC8
monochromatic
#655218 #967A23 #C8A22F #D9BA5C #E4CF8D

Accessibility & contrast

On white

2.42
#C8A22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#C8A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8A22F
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8A22F#FFFFFF#000000##000000
##C8A22F1.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01A
Deuteranopia (green-blind)
#BEAB35
Tritanopia (blue-blind)
#D9948C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c8a22f;
/* rgb */ color: rgb(200, 162, 47);
/* oklch */ color: oklch(72.7% 0.134 89.5);
Tailwind
colors: {
  custom: {
    50: '#ddbd70',
    500: '#c8a22f',
    950: '#000000',
  },
}
SCSS
$custom: #c8a22f;
$custom-light: #ddbd70;
$custom-dark: #000000;
JSON
{
  "hex": "#c8a22f",
  "rgb": {
    "r": 200,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 45.098,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72745,
    "c": 0.13367,
    "h": 89.5
  },
  "luminance": 0.38325
}

Semantic roles & 50–950 ramp

primary
#C8A22F
secondary
#8497CF
accent
#6BE543
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C8A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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