#C7A230#C7A230

#C7A230 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.6% C 0.133 H 90.0°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#C7A230
RGBrgb(199, 162, 48)
HSLhsl(45, 61%, 48%)
HSVhsv(45, 76%, 78%)
CMYKcmyk(0%, 18.6%, 75.9%, 22%)
CIE-LABlab(68.17, 2.33, 60.59)
CIE-LCHlch(68.17, 60.63, 87.80°)
OKLaboklab(72.65% 0.0001 0.1329)
OKLCHoklch(72.65% 0.133 90)
XYZxyz(37.0092, 38.1985, 8.2195)
Luminance0.3820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A230 #3055C7
analogous
#C75630 #C7A230 #A0C730
triadic
#C7A230 #30C7A2 #A230C7
tetradic
#C7A230 #30C756 #3055C7 #C730A0
square
#C7A230 #30C756 #3055C7 #C730A0
split-complementary
#C7A230 #30A0C7 #5630C7
monochromatic
#645218 #967A24 #C7A230 #D8BA5C #E4CF8E

Accessibility & contrast

On white

2.43
#C7A230 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#C7A230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A230
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A230#FFFFFF#000000##000000
##C7A2301.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01C
Deuteranopia (green-blind)
#BEAA36
Tritanopia (blue-blind)
#D8948C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c7a230;
/* rgb */ color: rgb(199, 162, 48);
/* oklch */ color: oklch(72.6% 0.133 90.0);
Tailwind
colors: {
  custom: {
    50: '#dcbd71',
    500: '#c7a230',
    950: '#000000',
  },
}
SCSS
$custom: #c7a230;
$custom-light: #dcbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a230",
  "rgb": {
    "r": 199,
    "g": 162,
    "b": 48
  },
  "hsl": {
    "h": 45.298,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72649,
    "c": 0.13288,
    "h": 90
  },
  "luminance": 0.38196
}

Semantic roles & 50–950 ramp

primary
#C7A230
secondary
#8597CE
accent
#6BE444
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A230

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

Preview Lab → · Contrast checker → · Palette generator →

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