#FFD340#FFD340

#FFD340 is a very light, vivid yellow. Relative luminance 0.682; OKLCH L 88.1% C 0.162 H 91.4°. Best body text is #000000 at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#FFD340
RGBrgb(255, 211, 64)
HSLhsl(46, 100%, 63%)
HSVhsv(46, 75%, 100%)
CMYKcmyk(0%, 17.3%, 74.9%, 0%)
CIE-LABlab(86.12, 1.40, 73.77)
CIE-LCHlch(86.12, 73.78, 88.91°)
OKLaboklab(88.09% -0.0039 0.1617)
OKLCHoklch(88.09% 0.162 91.4)
XYZxyz(65.4634, 68.2227, 14.5698)
Luminance0.6822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFD340 #406CFF
analogous
#FF7340 #FFD340 #CCFF40
triadic
#FFD340 #40FFD3 #D340FF
tetradic
#FFD340 #40FF73 #406CFF #FF40CC
square
#FFD340 #40FF73 #406CFF #FF40CC
split-complementary
#FFD340 #40CCFF #7340FF
monochromatic
#C59700 #FFC503 #FFD340 #FFE17D #FFEFBA

Accessibility & contrast

On white

1.43
#FFD340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.64
#FFD340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFD340
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFD340#FFFFFF#000000##000000
##FFD3401.001.4314.6414.64
#FFFFFF1.431.0021.0021.00
#00000014.6421.001.001.00
##00000014.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD025
Deuteranopia (green-blind)
#F5DD49
Tritanopia (blue-blind)
#FFC1B7
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ffd340;
/* rgb */ color: rgb(255, 211, 64);
/* oklch */ color: oklch(88.1% 0.162 91.4);
Tailwind
colors: {
  custom: {
    50: '#ffe07f',
    500: '#ffd340',
    950: '#000000',
  },
}
SCSS
$custom: #ffd340;
$custom-light: #ffe07f;
$custom-dark: #000000;
JSON
{
  "hex": "#ffd340",
  "rgb": {
    "r": 255,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 46.178,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.88093,
    "c": 0.16173,
    "h": 91.4
  },
  "luminance": 0.68219
}

Semantic roles & 50–950 ramp

primary
#FFD340
secondary
#2247C1
accent
#35E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19150B
muted
#87847E

Preview Lab

Preview with #FFD340

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

Preview Lab → · Contrast checker → · Palette generator →

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