#DBC242#DBC242

#DBC242 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.3% C 0.145 H 97.9°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#DBC242
RGBrgb(219, 194, 66)
HSLhsl(50, 68%, 56%)
HSVhsv(50, 70%, 86%)
CMYKcmyk(0%, 11.4%, 69.9%, 14.1%)
CIE-LABlab(78.48, -5.01, 64.48)
CIE-LCHlch(78.48, 64.67, 94.44°)
OKLaboklab(81.29% -0.02 0.1437)
OKLCHoklch(81.29% 0.145 97.9)
XYZxyz(49.4909, 54.0394, 12.9770)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DBC242 #425BDB
analogous
#DB7542 #DBC242 #A7DB42
triadic
#DBC242 #42DBC2 #C242DB
tetradic
#DBC242 #42DB75 #425BDB #DB42A7
square
#DBC242 #42DB75 #425BDB #DB42A7
split-complementary
#DBC242 #42A7DB #7542DB
monochromatic
#89771A #BCA324 #DBC242 #E5D375 #EFE3A9

Accessibility & contrast

On white

1.78
#DBC242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#DBC242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DBC242
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DBC242#FFFFFF#000000##000000
##DBC2421.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#DCC64A
Tritanopia (blue-blind)
#ECB4A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #dbc242;
/* rgb */ color: rgb(219, 194, 66);
/* oklch */ color: oklch(81.3% 0.145 97.9);
Tailwind
colors: {
  custom: {
    50: '#ead47e',
    500: '#dbc242',
    950: '#000000',
  },
}
SCSS
$custom: #dbc242;
$custom-light: #ead47e;
$custom-dark: #000000;
JSON
{
  "hex": "#dbc242",
  "rgb": {
    "r": 219,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 50.196,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81285,
    "c": 0.14513,
    "h": 97.9
  },
  "luminance": 0.54037
}

Semantic roles & 50–950 ramp

primary
#DBC242
secondary
#33428F
accent
#59EB3D
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #DBC242

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

Preview Lab → · Contrast checker → · Palette generator →

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