#AFC340#AFC340

#AFC340 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 77.7% C 0.154 H 117.6°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#AFC340
RGBrgb(175, 195, 64)
HSLhsl(69, 52%, 51%)
HSVhsv(69, 67%, 76%)
CMYKcmyk(10.3%, 0%, 67.2%, 23.5%)
CIE-LABlab(75.15, -24.15, 60.72)
CIE-LCHlch(75.15, 65.34, 111.69°)
OKLaboklab(77.75% -0.0716 0.1368)
OKLCHoklch(77.75% 0.154 117.6)
XYZxyz(38.1205, 48.5147, 12.2056)
Luminance0.4851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC340 #5440C3
analogous
#C39540 #AFC340 #6DC340
triadic
#AFC340 #40AFC3 #C340AF
tetradic
#AFC340 #40C395 #5440C3 #C3406D
square
#AFC340 #40C395 #5440C3 #C3406D
split-complementary
#AFC340 #406DC3 #9540C3
monochromatic
#5D6821 #87972F #AFC340 #C3D26F #D6E09D

Accessibility & contrast

On white

1.96
#AFC340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#AFC340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC340
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC340#FFFFFF#000000##000000
##AFC3401.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#CEBA4A
Tritanopia (blue-blind)
#B9B8A9
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc340;
/* rgb */ color: rgb(175, 195, 64);
/* oklch */ color: oklch(77.7% 0.154 117.6);
Tailwind
colors: {
  custom: {
    50: '#cad57c',
    500: '#afc340',
    950: '#000000',
  },
}
SCSS
$custom: #afc340;
$custom-light: #cad57c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc340",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 69.16,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77747,
    "c": 0.15439,
    "h": 117.6
  },
  "luminance": 0.48514
}

Semantic roles & 50–950 ramp

primary
#AFC340
secondary
#9B92CC
accent
#4CDC62
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC340

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

Preview Lab → · Contrast checker → · Palette generator →

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